small improvements
This commit is contained in:
parent
f7b63d848b
commit
c57d701656
|
@ -9,7 +9,6 @@ services:
|
|||
restart: always
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ${PWD}/sample.env:/usr/local/share/minetest/.env
|
||||
- ${PWD}/data/games:/usr/local/share/minetest/games
|
||||
- ${PWD}/data/worlds:/usr/local/share/minetest/worlds
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ download_and_install_game() {
|
|||
download_url=$(curl -X GET --silent "$API_URL/packages/${1}/" | jq ".url" | tr -d '"')
|
||||
cd games || exit
|
||||
wget -O game.zip "${download_url}"
|
||||
unzip -foq game.zip
|
||||
unzip -oq game.zip
|
||||
rm game.zip
|
||||
cd ../ # data
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ download_and_install_mod () {
|
|||
mod_file="${mods_path}/mod.zip"
|
||||
echo "Writing to ${mod_file} content from url ${mod_url}"
|
||||
wget -O "${mod_file}" "${mod_url}"
|
||||
unzip -foq "${mod_file}" -d "${mods_path}"
|
||||
unzip -oq "${mod_file}" -d "${mods_path}"
|
||||
rm "${mod_file}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue