diff --git a/conf/minetest.conf b/conf/minetest.conf index f1436e5..ffc12ec 100644 --- a/conf/minetest.conf +++ b/conf/minetest.conf @@ -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 diff --git a/scripts/install b/scripts/install index 5d2b36a..ef86899 100755 --- a/scripts/install +++ b/scripts/install @@ -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" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index fe2ff19..dc4c801 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"