From e137a5eb84f247a1648ad549f0eb8beb5680dc27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 8 Dec 2020 22:06:19 +0100 Subject: [PATCH] Fix package linter --- scripts/backup | 14 +++++++------- scripts/install | 2 +- scripts/restore | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/backup b/scripts/backup index 2447b3a..e78d87f 100644 --- a/scripts/backup +++ b/scripts/backup @@ -15,7 +15,7 @@ source /usr/share/yunohost/helpers ynh_abort_if_errors # Retrieve app settings -ynh_script_progression --message="Loading installation settings..." +ynh_print_info --message="Loading installation settings..." domain=$(ynh_app_setting_get --app $app --key domain) if [[ ! "$(systemctl status $app.service)" =~ "Active: inactive (dead)" ]]; then @@ -27,25 +27,25 @@ fi #================================================= # Copy the app source files -ynh_script_progression --message="Backing up code..." --weight=3 +ynh_print_info --message="Backing up code..." ynh_backup --src_path "$final_path" # Copy the data files -ynh_script_progression --message="Backing up user data..." --weight=10 +ynh_print_info --message="Backing up user data..." ynh_backup --src_path "$DATADIR" --is_big=1 -ynh_script_progression --message="Backing up configuration..." +ynh_print_info --message="Backing up configuration..." # Copy the conf files ynh_backup --src_path "/etc/nginx/conf.d/${domain}.d/${app}.conf" ynh_backup --src_path "/etc/systemd/system/${app}.service" # Backup logs -ynh_script_progression --message="Backing up logs..." +ynh_print_info --message="Backing up logs..." ynh_backup --src_path "/var/log/$app" # Dump the database -ynh_script_progression --message="Backing up database" +ynh_print_info --message="Backing up database" ynh_mysql_dump_db "$dbname" > ./db.sql -ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last +ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/install b/scripts/install index c6a0741..2fc9231 100644 --- a/scripts/install +++ b/scripts/install @@ -18,7 +18,7 @@ ynh_script_progression --message="Validating installation parameters..." # Retrieve arguments domain=$YNH_APP_ARG_DOMAIN -path_url=$(ynh_normalize_url_path --path_url $YNH_APP_ARG_PATH) +path_url=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN is_public=$YNH_APP_ARG_IS_PUBLIC upstream_version=$(ynh_app_upstream_version) diff --git a/scripts/restore b/scripts/restore index 12f2c5c..788a539 100644 --- a/scripts/restore +++ b/scripts/restore @@ -53,7 +53,7 @@ ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ./db.sql # Restore systemd files systemctl daemon-reload -systemctl enable "$app".service +systemctl enable "$app".service --quiet # SETUP FAIL2BAN ynh_script_progression --message="Configuring fail2ban..."