From a866f80129207924953bf6db093ab5b7aab7862e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 13 Dec 2020 18:47:45 +0100 Subject: [PATCH] Fix linter warnings --- check_process | 3 --- scripts/backup | 15 --------------- scripts/restore | 4 ++-- scripts/upgrade | 7 ------- 4 files changed, 2 insertions(+), 27 deletions(-) diff --git a/check_process b/check_process index 4259df3..abc3fa6 100644 --- a/check_process +++ b/check_process @@ -24,9 +24,6 @@ multi_instance=1 port_already_use=0 change_url=1 -;;; Levels - # If the level 5 (Package linter) is forced to 1. Please add justifications here. - Level 5=auto ;;; Options Email= Notification=all diff --git a/scripts/backup b/scripts/backup index df73ca3..5373c19 100755 --- a/scripts/backup +++ b/scripts/backup @@ -22,14 +22,6 @@ final_path=$(ynh_app_setting_get --app="$app" --key=final_path) domain=$(ynh_app_setting_get --app="$app" --key=domain) db_name=$(ynh_app_setting_get --app="$app" --key=db_name) -#================================================= -# STOP SYSTEMD SERVICE -#================================================= -ynh_print_info --message="Stopping systemd services..." - -ynh_systemd_action --service_name="$app" --action="stop" -ynh_systemd_action --service_name="$app-celery" --action="stop" - #================================================= # DECLARE DATA AND CONF FILES TO BACKUP #================================================= @@ -74,13 +66,6 @@ ynh_backup --src_path="/etc/uwsgi/apps-available/$app.ini" ynh_backup --src_path="/etc/systemd/system/$app.service" ynh_backup --src_path="/etc/systemd/system/$app-celery.service" -#================================================= -# START SYSTEMD SERVICE -#================================================= - -ynh_systemd_action --service_name="$app" --action="start" -ynh_systemd_action --service_name="$app-celery" --action="start" - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/restore b/scripts/restore index 9404ed6..7be3bff 100755 --- a/scripts/restore +++ b/scripts/restore @@ -100,9 +100,9 @@ ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./d ynh_script_progression --message="Restoring the systemd configuration..." ynh_restore_file --origin_path="/etc/systemd/system/$app.service" -systemctl enable $app.service +systemctl enable $app.service --quiet ynh_restore_file --origin_path="/etc/systemd/system/$app-celery.service" -systemctl enable "$app-celery" +systemctl enable "$app-celery" --quiet #================================================= # RESTORE UWSGI diff --git a/scripts/upgrade b/scripts/upgrade index 56e6312..3bea4af 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -71,13 +71,6 @@ then ynh_secure_remove --file="/var/log/$app-celery" fi -#================================================= -# CHECK THE PATH -#================================================= - -# Normalize the URL path syntax -path_url=$(ynh_normalize_url_path --path_url=$path_url) - #================================================= # STANDARD UPGRADE STEPS #=================================================