Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Remove restoring cluster.conf on restore (#53)
Browse files Browse the repository at this point in the history
This breaks restoring in a differently layed out cluster which is
explicitly supported.
  • Loading branch information
dbussink committed Jul 25, 2016
1 parent 3d9d284 commit 7b998d1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions share/github-backup-utils/ghe-restore-settings
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ if [ -f "$GHE_RESTORE_SNAPSHOT_PATH/manage-password" ]; then
ghe-ssh "$GHE_HOSTNAME" -- "ghe-import-passwords"
fi

if [ "$GHE_BACKUP_STRATEGY" = "cluster" ]; then
echo "Restoring cluster configuration ..."
cat "$GHE_RESTORE_SNAPSHOT_PATH/cluster.conf" |
ghe-ssh "$GHE_HOSTNAME" -- "sudo tee $GHE_REMOTE_CLUSTER_CONF_FILE >/dev/null"
fi

# Restore SAML keys if present.
if [ -f "$GHE_RESTORE_SNAPSHOT_PATH/saml-keys.tar" ]; then
echo "Restoring SAML keys ..."
Expand Down

0 comments on commit 7b998d1

Please sign in to comment.