|
@@ -25,6 +25,7 @@ app=$YNH_APP_INSTANCE_NAME
|
|
|
|
|
|
final_path=$(ynh_app_setting_get $app final_path)
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
|
|
+phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
|
|
|
|
|
#=================================================
|
|
|
# STANDARD BACKUP STEPS
|
|
@@ -53,16 +54,16 @@ ynh_backup "/usr/local/bin/$service_checker_name.sh"
|
|
|
#=================================================
|
|
|
# BACKUP THE NGINX CONFIGURATION
|
|
|
#=================================================
|
|
|
-ynh_print_info "Backing up nginx web server configuration..."
|
|
|
+ynh_print_info "Backing up NGINX web server configuration..."
|
|
|
|
|
|
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
|
|
|
|
|
#=================================================
|
|
|
# BACKUP THE PHP-FPM CONFIGURATION
|
|
|
#=================================================
|
|
|
-ynh_print_info "Backing up php-fpm configuration..."
|
|
|
+ynh_print_info "Backing up PHP-FPM configuration..."
|
|
|
|
|
|
-ynh_backup "/etc/php/7.0/fpm/pool.d/$app.conf"
|
|
|
+ynh_backup "/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
|
|
|
|
|
#=================================================
|
|
|
# SPECIFIC BACKUP
|
|
@@ -80,4 +81,4 @@ ynh_backup "/etc/systemd/system/openvpn@.service"
|
|
|
# END OF SCRIPT
|
|
|
#=================================================
|
|
|
|
|
|
-ynh_print_info "Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|
|
|
+ynh_print_info "Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|