|
|
@ -35,11 +35,6 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
|
|
|
#=================================================
|
|
|
|
#=================================================
|
|
|
|
# STANDARD BACKUP STEPS
|
|
|
|
# STANDARD BACKUP STEPS
|
|
|
|
#=================================================
|
|
|
|
#=================================================
|
|
|
|
# STOP SYSTEMD SERVICE
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Stopping a systemd service..." --time --weight=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
#=================================================
|
|
|
|
# BACKUP THE APP MAIN DIR
|
|
|
|
# BACKUP THE APP MAIN DIR
|
|
|
@ -99,13 +94,6 @@ ynh_backup --src_path="/etc/systemd/system/$app.service"
|
|
|
|
|
|
|
|
|
|
|
|
ynh_backup --src_path="/etc/cron.d/$app"
|
|
|
|
ynh_backup --src_path="/etc/cron.d/$app"
|
|
|
|
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
# START SYSTEMD SERVICE
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Starting a systemd service..." --time --weight=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
#=================================================
|
|
|
|