mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Add Dyndns domains keys to backup
This commit is contained in:
parent
555f0e3c65
commit
8b53d6562e
2 changed files with 20 additions and 0 deletions
10
data/hooks/backup/42-conf_ynh_dyndns
Normal file
10
data/hooks/backup/42-conf_ynh_dyndns
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
ynh_abort_if_errors
|
||||
YNH_CWD="${YNH_BACKUP_DIR%/}/conf/ynh/dyndns"
|
||||
cd "$YNH_CWD"
|
||||
|
||||
# Backup the configuration
|
||||
ynh_backup --src_path="/etc/yunohost/dyndns" --not_mandatory
|
||||
ynh_backup --src_path="/etc/cron.d/yunohost-dyndns" --not_mandatory
|
10
data/hooks/restore/42-conf_ynh_dyndns
Normal file
10
data/hooks/restore/42-conf_ynh_dyndns
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
ynh_abort_if_errors
|
||||
YNH_CWD="${YNH_BACKUP_DIR%/}/conf/ynh/dyndns"
|
||||
cd "$YNH_CWD"
|
||||
|
||||
# Restore file if exists
|
||||
ynh_restore_file --origin_path="/etc/yunohost/dyndns" --not_mandatory
|
||||
ynh_restore_file --origin_path="/etc/cron.d/yunohost-dyndns" --not_mandatory
|
Loading…
Add table
Reference in a new issue