diff --git a/scripts/backup b/scripts/backup index f2d1f9e..aede58d 100644 --- a/scripts/backup +++ b/scripts/backup @@ -68,4 +68,4 @@ ynh_backup --src_path="/etc/cron.d/$app" # END OF SCRIPT #================================================= -ynh_print_info --message="Backup script completed for Lutim. (YunoHost will then actually copy those files to the archive)." +ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/change_url b/scripts/change_url index 11bc9c5..7aa7a5f 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -33,7 +33,7 @@ port=$(ynh_app_setting_get --app=$app --key=port) #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= -ynh_script_progression --message="Backing up Lutim before changing its URL (may take a while)..." --weight=20 +ynh_script_progression --message="Backing up $app before changing its URL (may take a while)..." --weight=20 # Backup the current version of the app ynh_backup_before_upgrade @@ -163,4 +163,4 @@ ynh_maintenance_mode_OFF # END OF SCRIPT #================================================= -ynh_script_progression --message="Change of URL completed for Lutim" --last +ynh_script_progression --message="Change of URL completed for $app" --last diff --git a/scripts/install b/scripts/install index 5011931..b0a75e1 100644 --- a/scripts/install +++ b/scripts/install @@ -104,7 +104,7 @@ ynh_system_user_create $app #================================================= # SETUP LUTIM #================================================= -ynh_script_progression --message="Configure Lutim" --weight=2 +ynh_script_progression --message="Configure $app" --weight=2 # Configure Lutim cp ../conf/lutim.conf.template "$final_path/lutim.conf" @@ -147,7 +147,7 @@ chmod +x $final_path/script/lutim #================================================= # INSTALL LUTIM WITH CARTON #================================================= -ynh_script_progression --message="Installing Lutim with Carton..." --weight=60 +ynh_script_progression --message="Installing $app with Carton..." --weight=60 mkdir -p /var/log/$app/ (cd $final_path @@ -230,7 +230,7 @@ ynh_systemd_action --service_name=nginx --action=reload #================================================= # CHECK LUTIM BOOTING #================================================= -ynh_script_progression --message="Restarting Lutim..." --weight=6 +ynh_script_progression --message="Restarting $app..." --weight=6 # Wait for lutim to be fully started ynh_systemd_action --action=restart --line_match="Manager.*started" --log_path="/var/log/$app/production.log" --timeout="120" @@ -262,4 +262,4 @@ ynh_send_readme_to_admin --app_message="mail_to_send" --recipients="root" --type # END OF SCRIPT #================================================= -ynh_script_progression --message="Installation of Lutim completed" --last +ynh_script_progression --message="Installation of $app completed" --last diff --git a/scripts/remove b/scripts/remove index c1d7449..2dab54d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -36,7 +36,7 @@ ynh_remove_systemd_config # Check if the service is declared in YunoHost if ynh_exec_fully_quiet yunohost service status $app then - ynh_script_progression --message="Removing Lutim service..." + ynh_script_progression --message="Removing $app service..." yunohost service remove $app fi @@ -51,7 +51,7 @@ ynh_remove_app_dependencies #================================================= # REMOVE APP MAIN DIR #================================================= -ynh_script_progression --message="Removing Lutim main directory..." --weight=2 +ynh_script_progression --message="Removing $app main directory..." --weight=2 # Remove the app directory securely ynh_secure_remove --file="$final_path" @@ -94,4 +94,4 @@ ynh_system_user_delete --username=$app # END OF SCRIPT #================================================= -ynh_script_progression --message="Removal of Lutim completed" --last +ynh_script_progression --message="Removal of $app completed" --last diff --git a/scripts/restore b/scripts/restore index 1955f5b..b56896d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -60,7 +60,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # RESTORE THE APP MAIN DIR #================================================= -ynh_script_progression --message="Restoring Lutim main directory..." +ynh_script_progression --message="Restoring $app main directory..." ynh_restore_file --origin_path="$final_path" @@ -135,7 +135,7 @@ ynh_systemd_action --service_name=nginx --action=reload #================================================= # START AND CHECK LUTIM BOOTING #================================================= -ynh_script_progression --message="Restarting Lutim..." --weight=3 +ynh_script_progression --message="Restarting $app..." --weight=3 # Wait for lutim to be fully started ynh_systemd_action --action=restart --line_match="Manager.*started" --log_path="/var/log/$app/production.log" --timeout="120" @@ -167,4 +167,4 @@ ynh_send_readme_to_admin --app_message="mail_to_send" --recipients="root" --type # END OF SCRIPT #================================================= -ynh_script_progression --message="Restoration completed for Lutim" --last +ynh_script_progression --message="Restoration completed for $app" --last diff --git a/scripts/upgrade b/scripts/upgrade index ea7c2f1..67be92a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -137,7 +137,7 @@ ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= -ynh_script_progression --message="Backing up Lutim before upgrading (may take a while)..." --weight=15 +ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=15 # Backup the current version of the app ynh_backup_before_upgrade @@ -208,7 +208,7 @@ ynh_system_user_create --username=$app #================================================= # SETUP LUTIM #================================================= -ynh_script_progression --message="Reconfiguring Lutim..." +ynh_script_progression --message="Reconfiguring $app..." # Overwrite the settings config file only if it's allowed if [ $overwrite_settings -eq 1 ] @@ -272,7 +272,7 @@ ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_fil if [ "$upgrade_type" == "UPGRADE_APP" ] then - ynh_script_progression --message="Upgrading Lutim with Carton..." --weight=4 + ynh_script_progression --message="Upgrading $app with Carton..." --weight=4 (cd $final_path carton install 2>&1 | tee -a "/var/log/$app/setup_carton.log") fi @@ -344,4 +344,4 @@ ynh_send_readme_to_admin --app_message="mail_to_send" --recipients="root" --type # END OF SCRIPT #================================================= -ynh_script_progression --message="Upgrade of Lutim completed" --last +ynh_script_progression --message="Upgrade of $app completed" --last