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