mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Update backup
This commit is contained in:
parent
fe6db924cb
commit
5b913a260b
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,10 @@ ynh_script_progression --message="Backing up the main app directory..." --weight
|
||||||
ynh_script_progression --message="Backing up nginx web server configuration..." --weight=1
|
ynh_script_progression --message="Backing up nginx web server configuration..." --weight=1
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
if yunohost --output-as plain domain list | grep -q "^$server_name$"
|
||||||
|
then
|
||||||
ynh_backup --src_path="/etc/nginx/conf.d/${server_name}.d/server_name.conf"
|
ynh_backup --src_path="/etc/nginx/conf.d/${server_name}.d/server_name.conf"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE POSTGRESQL DATABASE
|
# BACKUP THE POSTGRESQL DATABASE
|
||||||
|
|
Loading…
Add table
Reference in a new issue