1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minetest_ynh.git synced 2024-09-03 20:36:00 +02:00
This commit is contained in:
Éric Gaspar 2024-01-08 13:40:09 +01:00
parent 3ee48ca395
commit 1e39a60576
3 changed files with 2 additions and 19 deletions

View file

@ -1204,7 +1204,7 @@ server_address = __DOMAIN__
# Automatically report to the serverlist.
# type: bool
server_announce = __ANNOUNCE__
server_announce = false
# Announce to this serverlist.
# type: string

View file

@ -48,12 +48,6 @@ popd
#=================================================
ynh_script_progression --message="Adding a configuration file..."
if [ $is_public -eq 1 ]; then
announce="true"
else
announce="false"
fi
ynh_add_config --template="minetest.conf" --destination="$data_dir/.minetest/minetest.conf"
chmod 400 "$data_dir/.minetest/minetest.conf"
@ -73,7 +67,6 @@ chown -R $app:$app /var/log/$app
# Use logrotate to manage application logfile(s)
ynh_use_logrotate
yunohost service add $app --description="Voxel game engine and game" --log="/var/log/$app/$app.log" --needs_exposed_ports="$port"
#=================================================

View file

@ -43,11 +43,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Remove old install
#REMOVEME? ynh_secure_remove --file="$install_dir"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
ynh_setup_source --dest_dir="$install_dir" --full_replace=1
fi
chmod -R o-rwx "$install_dir"
@ -101,13 +98,6 @@ fi
#=================================================
ynh_script_progression --message="Updating a configuration file..."
if ynh_permission_has_user --permission=main --user=visitors
then
announce="true"
else
announce="false"
fi
ynh_add_config --template="minetest.conf" --destination="$data_dir/.minetest/minetest.conf"
chmod 400 "$data_dir/.minetest/minetest.conf"