diff --git a/scripts/install b/scripts/install index 224a035..9bdcc9f 100644 --- a/scripts/install +++ b/scripts/install @@ -14,7 +14,6 @@ source /usr/share/yunohost/helpers #================================================= # Retrieve arguments -default_home_server=$YNH_APP_ARG_DEFAULT_HOME_SERVER login_for_welcome=true #================================================= @@ -22,7 +21,6 @@ login_for_welcome=true #================================================= ynh_script_progression --message="Storing installation settings..." --weight=1 -ynh_app_setting_set --app=$app --key=default_home_server --value=$default_home_server ynh_app_setting_set --app=$app --key=login_for_welcome --value=$login_for_welcome #================================================= diff --git a/scripts/restore b/scripts/restore index 4777bc4..8c46058 100644 --- a/scripts/restore +++ b/scripts/restore @@ -29,6 +29,8 @@ ynh_restore_file --origin_path="$install_dir" # Set permissions to app files chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" +chmod 400 "$install_dir/config.json" +chown $app:$app "$install_dir/config.json" #================================================= # GENERIC FINALIZATION diff --git a/tests.toml b/tests.toml index 4a815fe..34427d2 100644 --- a/tests.toml +++ b/tests.toml @@ -2,12 +2,6 @@ test_format = 1.0 [default] - # ------------------------------- - # Default args to use for install - # ------------------------------- - - args.default_home_server="matrix.org" - # ------------------------------- # Commits to test upgrade from # -------------------------------