From 1509b9ebf62725ee4610581116ef532f3ea9c31d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 14 Dec 2020 10:25:53 +0100 Subject: [PATCH] Fix linter warnings --- check_process | 2 -- manifest.json | 2 +- scripts/backup | 4 ++-- scripts/change_url | 4 ++-- scripts/install | 2 +- scripts/remove | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 10 ++-------- 8 files changed, 12 insertions(+), 20 deletions(-) diff --git a/check_process b/check_process index 1e8a280..176d5a5 100644 --- a/check_process +++ b/check_process @@ -16,6 +16,4 @@ multi_instance=1 port_already_use=0 change_url=1 -;;; Levels - Level 5=auto \ No newline at end of file diff --git a/manifest.json b/manifest.json index 3c7a127..c0d5574 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name": "Cubiks-2048", + "name": "Cubiks 2048", "id": "cubiks-2048", "packaging_format": 1, "description": { diff --git a/scripts/backup b/scripts/backup index 3b1eda7..cdfe3bf 100644 --- a/scripts/backup +++ b/scripts/backup @@ -18,7 +18,7 @@ ynh_abort_if_errors #================================================= # LOAD SETTINGS #================================================= -ynh_print_info --message="Backing up Cubiks-2048..." +ynh_print_info --message="Backing up Cubiks 2048..." app=$YNH_APP_INSTANCE_NAME @@ -46,4 +46,4 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" # END OF SCRIPT #================================================= -ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." +ynh_print_info --message="Backup script completed for Cubiks 2048. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/change_url b/scripts/change_url index 5ce6932..424dd66 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -34,7 +34,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= -ynh_script_progression --message="Backing up $app before changing its url (may take a while)..." --weight=2 +ynh_script_progression --message="Backing up Cubiks 2048 before changing its URL (may take a while)..." --weight=2 # Backup the current version of the app ynh_backup_before_upgrade @@ -104,4 +104,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Change of URL completed for $app" --last +ynh_script_progression --message="Change of URL completed for Cubiks 2048" --last diff --git a/scripts/install b/scripts/install index a5d8867..fdf4e48 100755 --- a/scripts/install +++ b/scripts/install @@ -95,4 +95,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Installation of $app completed" --last +ynh_script_progression --message="Installation of Cubiks 2048 completed" --last diff --git a/scripts/remove b/scripts/remove index 2123569..7abebbf 100755 --- a/scripts/remove +++ b/scripts/remove @@ -23,7 +23,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= # REMOVE APP MAIN DIR #================================================= -ynh_script_progression --message="Removing $app main directory..." --weight=3 +ynh_script_progression --message="Removing Cubiks 2048 main directory..." --weight=3 # Remove the app directory securely ynh_secure_remove --file="$final_path" @@ -40,4 +40,4 @@ ynh_remove_nginx_config # END OF SCRIPT #================================================= -ynh_script_progression --message="Removal of $app completed" --last +ynh_script_progression --message="Removal of Cubiks 2048 completed" --last diff --git a/scripts/restore b/scripts/restore index 7680bdd..26a7378 100644 --- a/scripts/restore +++ b/scripts/restore @@ -46,7 +46,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # RESTORE THE APP MAIN DIR #================================================= -ynh_script_progression --message="Restoring $app main directory..." --weight=2 +ynh_script_progression --message="Restoring Cubiks 2048 main directory..." --weight=2 ynh_restore_file --origin_path="$final_path" @@ -78,4 +78,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Restoration completed for $app" --last +ynh_script_progression --message="Restoration completed for Cubiks 2048" --last diff --git a/scripts/upgrade b/scripts/upgrade index 10a7628..8dbc35e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -49,7 +49,7 @@ fi #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= -ynh_script_progression --message="Backing up $app before upgrading (may take a while)..." --weight=3 +ynh_script_progression --message="Backing up Cubiks 2048 before upgrading (may take a while)..." --weight=3 # Backup the current version of the app ynh_backup_before_upgrade @@ -60,12 +60,6 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors -#================================================= -# CHECK THE PATH -#================================================= - -path_url=$(ynh_normalize_url_path --path_url=$path_url) - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -104,4 +98,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Upgrade of $app completed" --last +ynh_script_progression --message="Upgrade of Cubiks 2048 completed" --last