File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -191,31 +191,6 @@ PATH="$GHE_BACKUP_ROOT/bin:$GHE_BACKUP_ROOT/share/github-backup-utils:$PATH"
191191# backup.config value when set.
192192GHE_HOSTNAME_PRESERVE=" $GHE_HOSTNAME "
193193
194- # Source in the backup config file from the copy specified in the environment
195- # first and then fall back to the backup-utils root, home directory and system.
196- config_found=false
197- for f in " $GHE_BACKUP_CONFIG " " $GHE_BACKUP_ROOT /backup.config" \
198- " $HOME /.github-backup-utils/backup.config" " /etc/github-backup-utils/backup.config" ; do
199- if [ -f " $f " ]; then
200- GHE_BACKUP_CONFIG=" $f "
201- # shellcheck disable=SC1090 # This is a user-supplied value that can't be predicted
202- . " $GHE_BACKUP_CONFIG "
203- config_found=true
204- break
205- fi
206- done
207-
208- # If we don't have a readlink command, error out
209- ! type readlink 1> /dev/null 2>&1 && {
210- echo " Error: readlink not found. Please install readlink and ensure it is in your PATH." 1>&2
211- exit 1
212- }
213-
214- GHE_RESTORE_IN_PROGRESS=$( readlink -fm " ${GHE_DATA_DIR} /in-progress-restore" )
215- GHE_BACKUP_IN_PROGRESS=$( readlink -fm " ${GHE_DATA_DIR} /in-progress-backup" )
216-
217- export GHE_RESTORE_IN_PROGRESS
218- export GHE_BACKUP_IN_PROGRESS
219194
220195ghe_restore_check () {
221196 if [ -h " $GHE_RESTORE_IN_PROGRESS " ]; then
You can’t perform that action at this time.
0 commit comments