server/minecraft: Fixed downloading Minecraft Server version

dehydrated
Felix Stupp 5 years ago
parent e0342a6bba
commit 3fb273aaae
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -13,7 +13,7 @@ launch_script: "{{ user_directory }}/launch"
apparmor_profile: "{{ global_apparmor_profiles_directory }}/{{ launch_script | regex_replace('/', '.') }}" apparmor_profile: "{{ global_apparmor_profiles_directory }}/{{ launch_script | regex_replace('/', '.') }}"
# minecraft_version: "1.10" # minecraft_version: "1.10"
minecraft_source_link_generator: "curl --silent https://mcversions.net | grep minecraft_server-{{ minecraft_version }}.jar | grep --only-matching --perl-regexp '(?<=\")https://launcher.mojang.com/[^\"]+(?=\")'" minecraft_source_link_generator: "curl --silent https://mcversions.net/download/{{ minecraft_version }} | grep --only-matching --perl-regexp '(?<=\")https://launcher.mojang.com/[^\"]+/server\\.jar(?=\")'"
minecraft_source_link: "{{ lookup('pipe', minecraft_source_link_generator) }}" # direct link to server jar minecraft_source_link: "{{ lookup('pipe', minecraft_source_link_generator) }}" # direct link to server jar
minecraft_port: "25565" minecraft_port: "25565"
minecraft_query_port: "{{ minecraft_port }}" minecraft_query_port: "{{ minecraft_port }}"

Loading…
Cancel
Save