Skip to content

Commit bd61d55

Browse files
committed
Use complex command form
1 parent e5bfddf commit bd61d55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/ghe-restore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ ghe-restore-es-${GHE_BACKUP_STRATEGY} "$GHE_HOSTNAME" 1>&3
209209

210210
# Restart an already running memcached to reset the cache after restore
211211
if [ "$GHE_VERSION_MAJOR" -ge 2 ]; then
212-
ghe-ssh "$GHE_HOSTNAME" -- "sudo restart -q memcached 2>&1 || true"
212+
echo "sudo restart -q memcached 2>&1 || true" | ghe-ssh "$GHE_HOSTNAME"
213213
fi
214214

215215
# When restoring to a host that has already been configured, kick off a

0 commit comments

Comments
 (0)