2
0
Fork 0

backup: fix incorrect config dir

main
Ducky 2022-03-02 00:55:57 +00:00
parent 60d7afe6b9
commit c7b6a64345
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ env_dir=$1
base_dir="$(dirname "$(realpath -s "$0")")"
root_dir="$base_dir/../../.."
[[ -z $env_dir ]] && env_dir="/etc/zio/backup/"
[[ -z $env_dir ]] && env_dir="/opt/zio/config/backup"
function restic_exec() {
command="$1"
@ -115,7 +115,7 @@ if [[ $UID != 0 ]]; then
fi
if [[ ! -d $env_dir ]]; then
say_warn "Environment directory ($env_dir) not found."
say_die "Config directory ($env_dir) not found."
else
chown root:root -R $env_dir
chmod 660 -R $env_dir