yunohost/data/hooks/backup/08-conf_ssh

13 lines
200 B
Bash
Executable file

#!/bin/bash
set -eu
. /usr/share/yunohost/helpers.d/filesystem
backup_dir="${1}/conf/ssh"
if [ -d /etc/ssh/ ]; then
ynh_backup "/etc/ssh" "$backup_dir"
else
echo "SSH is not installed"
fi