[fix] Missing backup conf

This commit is contained in:
ljf 2020-12-08 12:17:59 +01:00
parent 28b8a0ef6a
commit 2be911d369
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#!/bin/bash
# Exit hook on subcommand error or unset variable
set -eu
# Source YNH helpers
source /usr/share/yunohost/helpers
# Backup destination
backup_dir="${1}/etc/dkim"
# Backup the configuration
ynh_backup "/etc/dkim" "$backup_dir"

View file

@ -0,0 +1,5 @@
#!/bin/bash
backup_dir="$1/etc/dkim"
cp -a $backup_dir/. /etc/dkim