Skip to content

Commit 53f79b3

Browse files
committed
Remove superfluous ghe-service-ensure-redis invocation in ghe-restore
This isn't needed since ghe-import-redis stops the service if it's running, imports, and then starts up again. See vm_files/usr/local/bin/ghe-import-redis for details.
1 parent ff18e10 commit 53f79b3

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

bin/ghe-restore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ fi
8080
gzip -dc "$GHE_RESTORE_SNAPSHOT_PATH/mysql.sql.gz" | ghe-ssh "$host" -- 'ghe-import-mysql' 1>&3
8181

8282
echo "Restoring Redis database ..."
83-
if [ "$GHE_VERSION_MAJOR" -gt 1 ]; then
84-
ghe-ssh "$host" -- 'sudo ghe-service-ensure-redis' 1>&3
85-
fi
8683
ghe-ssh "$host" -- 'ghe-import-redis' < "$GHE_RESTORE_SNAPSHOT_PATH/redis.rdb" 1>&3
8784

8885
echo "Restoring SSH authorized keys ..."

0 commit comments

Comments
 (0)