From 530653f9e441aec4ca28cdecd4eef0bf80010418 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 17 Nov 2020 10:50:23 +0100 Subject: [PATCH] Fix check_process warnings --- check_process | 10 ---------- manifest.json | 4 ++-- scripts/backup | 5 +++++ scripts/install | 2 +- scripts/restore | 1 - scripts/upgrade | 8 -------- 6 files changed, 8 insertions(+), 22 deletions(-) diff --git a/check_process b/check_process index 88b90ef..1e8a280 100644 --- a/check_process +++ b/check_process @@ -14,18 +14,8 @@ upgrade=1 backup_restore=1 multi_instance=1 - incorrect_path=1 port_already_use=0 change_url=1 ;;; Levels - Level 1=auto - Level 2=auto - Level 3=auto - Level 4=0 Level 5=auto - Level 6=auto - Level 7=auto - Level 8=0 - Level 9=0 - Level 10=0 \ No newline at end of file diff --git a/manifest.json b/manifest.json index 78473cc..3c7a127 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "2048 game clone in 3D", "fr": "Clone du jeu 2048 en 3D" }, - "version": "1.0~ynh2", + "version": "1.0~ynh3", "url": "https://github.com/Kshitij-Banerjee/Cubiks-2048/", "license": "MIT", "maintainer": { @@ -14,7 +14,7 @@ "email": "ericgaspar@free.fr" }, "requirements": { - "yunohost": ">= 3.7.0" + "yunohost": ">= 4.0.0" }, "multi_instance": true, "services": [ diff --git a/scripts/backup b/scripts/backup index 139eacc..3b1eda7 100644 --- a/scripts/backup +++ b/scripts/backup @@ -25,6 +25,11 @@ app=$YNH_APP_INSTANCE_NAME final_path=$(ynh_app_setting_get --app=$app --key=final_path) domain=$(ynh_app_setting_get --app=$app --key=domain) +#================================================= +# DECLARE DATA AND CONF FILES TO BACKUP +#================================================= +ynh_print_info --message="Declaring files to be backed up..." + #================================================= # BACKUP THE APP MAIN DIR #================================================= diff --git a/scripts/install b/scripts/install index a5d8867..66cfb29 100755 --- a/scripts/install +++ b/scripts/install @@ -82,7 +82,7 @@ chown -R root: $final_path ynh_script_progression --message="Configuring SSOwat..." --weight=1 # Make app public if necessary or protect it -[ $is_public -eq 0 ] || ynh_permission_update --permission "main" --add "visitors" +[ $is_public -eq 1 ] || ynh_permission_update --permission "main" --add "visitors" #================================================= # RELOAD NGINX diff --git a/scripts/restore b/scripts/restore index c2896b5..7680bdd 100644 --- a/scripts/restore +++ b/scripts/restore @@ -12,7 +12,6 @@ source /usr/share/yunohost/helpers # MANAGE SCRIPT FAILURE #================================================= -# Exit if an error occurs during the execution of the script ynh_abort_if_errors #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 993d052..10a7628 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -93,14 +93,6 @@ ynh_add_nginx_config # Set permissions on app files chown -R root: $final_path -#================================================= -# SETUP SSOWAT -#================================================= -ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=1 - -# Make app public if necessary or protect it -[ $is_public -eq 0 ] || ynh_permission_update --permission "main" --add "visitors" - #================================================= # RELOAD NGINX #=================================================