1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/Cubiks-2048_ynh.git synced 2024-09-03 18:25:55 +02:00

Fix linter warnings

This commit is contained in:
ericgaspar 2020-12-14 10:25:53 +01:00
parent af6fcd925b
commit 1509b9ebf6
No known key found for this signature in database
GPG key ID: 574F281483054D44
8 changed files with 12 additions and 20 deletions

View file

@ -16,6 +16,4 @@
multi_instance=1
port_already_use=0
change_url=1
;;; Levels
Level 5=auto

View file

@ -1,5 +1,5 @@
{
"name": "Cubiks-2048",
"name": "Cubiks 2048",
"id": "cubiks-2048",
"packaging_format": 1,
"description": {

View file

@ -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)."

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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