backup: fix incorrect config dir
parent
60d7afe6b9
commit
c7b6a64345
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue