1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

Generate backup about the custom error setup

This commit is contained in:
Aurelien Vaillant 2023-08-21 13:31:36 +02:00
parent ad2673106c
commit c4c9581eab
2 changed files with 10 additions and 1 deletions

View file

@ -36,6 +36,15 @@ then
ynh_backup --src_path="/etc/php/${phpversion}/fpm/pool.d/$app.conf"
fi
#=================================================
# BACKUP CUSTOM CONF
#=================================================
if [ $custom_error_file -eq 1 ]
then
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.d/nginx-code-error.conf"
fi
#=================================================
# BACKUP THE MYSQL DATABASE
#=================================================

View file

@ -58,7 +58,7 @@ then
ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf"
fi
# Create a dedicated NGINX config
# Create a dedicated NGINX configssh
ynh_add_nginx_config
fi