1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpldapadmin_ynh.git synced 2024-09-03 19:56:45 +02:00
phpldapadmin_ynh/scripts/backup
2017-09-11 10:55:18 +00:00

17 lines
338 B
Bash
Executable file

#!/bin/bash
set -eu
. /usr/share/yunohost/helpers
ynh_abort_if_errors
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get "$app" domain)
path=$(ynh_app_setting_get "$app" path)
admin=$(ynh_app_setting_get "$app" admin)
ynh_backup "/var/www/$app" "sources" 1
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" "conf/nginx.conf"