Skip to content

Commit dc95625

Browse files
committed
update to check for 3.10
1 parent c3405a5 commit dc95625

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

share/github-backup-utils/ghe-backup-config

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,13 @@ export GHE_DATA_DIR
374374
: "${GHE_RELEASE_FILE:="/etc/github/enterprise-release"}"
375375

376376
# 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
384384

385385
GHE_CREATE_DATA_DIR=${GHE_CREATE_DATA_DIR:-yes}
386386

share/github-backup-utils/ghe-restore-actions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ if [ -n "$GHE_RESTORE_SNAPSHOT_PATH" ]; then
9191
snapshot_version=$(cat $GHE_RESTORE_SNAPSHOT_PATH/version)
9292
# shellcheck disable=SC2046 # Word splitting is required to populate the variables
9393
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
9595
restore-secret "Actions storage container prefix" "actions-storage-container-prefix" "secrets.actions.storage.container-prefix"
9696
fi
9797
fi

share/github-backup-utils/track-progress

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ progress(){
1111
PROGRESS_PERCENT=$( echo "scale = 2; ($PROGRESS / $PROGRESS_TOTAL) * 100" | bc)
1212
echo $((PROGRESS + 1)) > /tmp/backup-utils-progress
1313
echo "${PROGRESS_TYPE} progress: $PROGRESS_PERCENT % ($PROGRESS / $PROGRESS_TOTAL ) $1 " > /tmp/backup-utils-progress-info
14-
}
14+
}

0 commit comments

Comments
 (0)