mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Also backup Yunohost settings
This commit is contained in:
parent
9f599fee4c
commit
95ed4d67a0
3 changed files with 5 additions and 3 deletions
|
@ -11,3 +11,4 @@ backup_dir="${1}/conf/ynh"
|
|||
|
||||
# Backup the configuration
|
||||
ynh_backup "/etc/yunohost/current_host" "${backup_dir}/current_host"
|
||||
[ ! -e "/etc/yunohost/settings.json" ] || ynh_backup "/etc/yunohost/settings.json" "${backup_dir}/settings.json"
|
|
@ -1,3 +0,0 @@
|
|||
backup_dir="$1/conf/ynh"
|
||||
|
||||
cp -a "${backup_dir}/current_host" /etc/yunohost/current_host
|
4
data/hooks/restore/40-conf_ynh_settings
Normal file
4
data/hooks/restore/40-conf_ynh_settings
Normal file
|
@ -0,0 +1,4 @@
|
|||
backup_dir="$1/conf/ynh"
|
||||
|
||||
cp -a "${backup_dir}/current_host" /etc/yunohost/current_host
|
||||
[ ! -e "${backup_dir}/settings.json" ] || cp -a "${backup_dir}/settings.json" "/etc/yunohost/settings.json"
|
Loading…
Add table
Reference in a new issue