yunohost/data/hooks/backup/14-conf_ssowat
2016-05-30 09:17:25 +02:00

13 lines
255 B
Bash
Executable file

#!/bin/bash
# Exit hook on subcommand error or unset variable
set -eu
# Source YNH helpers
. /usr/share/yunohost/helpers.d/filesystem
# Backup destination
backup_dir="${1}/conf/ssowat"
# Backup the configuration
ynh_backup "/etc/ssowat" "$backup_dir"