File tree Expand file tree Collapse file tree
share/github-backup-utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ PATH="$GHE_BACKUP_ROOT/bin:$GHE_BACKUP_ROOT/share/github-backup-utils:$PATH"
2020
2121# The backup config file. This may be set in the environment.
2222: ${GHE_BACKUP_CONFIG:= " $GHE_BACKUP_ROOT /backup.config" }
23+ if [ ! -f $GHE_BACKUP_CONFIG ]; then
24+ GHE_BACKUP_CONFIG=" /etc/github-backup-utils/backup.config"
25+ fi
2326
2427# Parse out -v (verbose) argument
2528if [ " $1 " = " -v" ]; then
3841
3942# Check that the config file exists before we source it in.
4043if [ ! -f " $GHE_BACKUP_CONFIG " ]; then
41- echo " Error: The backup config file ('$GHE_BACKUP_CONFIG ') doesn't exist." 1>&2
44+ echo " Error: No backup configuration file found. Tried:"
45+ echo " - $GHE_BACKUP_ROOT /backup.config"
46+ echo " - /etc/github-backup-utils/backup.config"
4247 exit 2
4348fi
4449
You can’t perform that action at this time.
0 commit comments