File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
share/github-backup-utils Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -374,13 +374,13 @@ export GHE_DATA_DIR
374
374
: " ${GHE_RELEASE_FILE:= " /etc/github/enterprise-release" } "
375
375
376
376
# Check that utils are not being run directly on GHE appliance.
377
- # if [ -f "$GHE_RELEASE_FILE" ]; then
378
- # echo "Error: Backup Utils cannot be run on the GitHub Enterprise host." 1>&2
379
- # echo " The backup utilities should be run on a host dedicated to" 1>&2
380
- # echo " long-term permanent storage and must have network connectivity" 1>&2
381
- # echo " with the GitHub Enterprise appliance." 1>&2
382
- # exit 1
383
- # fi
377
+ if [ -f " $GHE_RELEASE_FILE " ]; then
378
+ echo " Error: Backup Utils cannot be run on the GitHub Enterprise host." 1>&2
379
+ echo " The backup utilities should be run on a host dedicated to" 1>&2
380
+ echo " long-term permanent storage and must have network connectivity" 1>&2
381
+ echo " with the GitHub Enterprise appliance." 1>&2
382
+ exit 1
383
+ fi
384
384
385
385
GHE_CREATE_DATA_DIR=${GHE_CREATE_DATA_DIR:- yes}
386
386
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ -n "$GHE_RESTORE_SNAPSHOT_PATH" ]; then
91
91
snapshot_version=$( cat $GHE_RESTORE_SNAPSHOT_PATH /version)
92
92
# shellcheck disable=SC2046 # Word splitting is required to populate the variables
93
93
read -r snapshot_version_major snapshot_version_minor _ <<< $( ghe_parse_version $snapshot_version )
94
- if [ " $snapshot_version_major " -eq " 3" -a " $snapshot_version_minor " -ge " 9 " -a $RESTORE_SETTINGS ]; then
94
+ if [ " $snapshot_version_major " -eq " 3" -a " $snapshot_version_minor " -ge " 10 " -a $RESTORE_SETTINGS ]; then
95
95
restore-secret " Actions storage container prefix" " actions-storage-container-prefix" " secrets.actions.storage.container-prefix"
96
96
fi
97
97
fi
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ progress(){
11
11
PROGRESS_PERCENT=$( echo " scale = 2; ($PROGRESS / $PROGRESS_TOTAL ) * 100" | bc)
12
12
echo $(( PROGRESS + 1 )) > /tmp/backup-utils-progress
13
13
echo " ${PROGRESS_TYPE} progress: $PROGRESS_PERCENT % ($PROGRESS / $PROGRESS_TOTAL ) $1 " > /tmp/backup-utils-progress-info
14
- }
14
+ }
You can’t perform that action at this time.
0 commit comments