yunohost/data/hooks/backup/40-conf_ynh_currenthost

9 lines
163 B
Bash
Executable file

#!/bin/bash
set -eu
. /usr/share/yunohost/helpers.d/filesystem
backup_dir="${1}/conf/ynh"
ynh_backup "/etc/yunohost/current_host" "${backup_dir}/current_host"