get restic path from environment

This commit is contained in:
2020-04-20 22:28:32 -05:00
parent e08ed9a2ec
commit b2f56598fa
5 changed files with 24 additions and 3 deletions

View File

@ -8,7 +8,9 @@ error_exit() {
}
RESTIC_ETC_PATH=${RESTIC_ETC_PATH:-/etc/restic}
RESTIC_PATH=${RESTIC_PATH:-/usr/local/bin/restic}
# shellcheck source=/dev/null
source "${RESTIC_ETC_PATH}/env.sh"
MAX_ATTEMPTS=60
NICE="ionice -c2 nice -n19"

View File

@ -8,7 +8,9 @@ error_exit() {
}
RESTIC_ETC_PATH=${RESTIC_ETC_PATH:-/etc/restic}
RESTIC_PATH=${RESTIC_PATH:-/usr/local/bin/restic}
# shellcheck source=/dev/null
source "${RESTIC_ETC_PATH}/env.sh"
if [ $# -lt 2 ]; then
error_exit "missing arguments"

View File

@ -8,7 +8,9 @@ error_exit() {
}
RESTIC_ETC_PATH=${RESTIC_ETC_PATH:-/etc/restic}
RESTIC_PATH=${RESTIC_PATH:-/usr/local/bin/restic}
# shellcheck source=/dev/null
source "${RESTIC_ETC_PATH}/env.sh"
if [ "$RESTIC_SELF_UPDATE" -eq 1 ]; then
printf "running restic self-update\n"