File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -446,6 +446,14 @@ echo "Restarting memcached ..." 1>&3
446
446
echo " sudo restart -q memcached 2>/dev/null || true" |
447
447
ghe-ssh " $GHE_HOSTNAME " -- /bin/sh
448
448
449
+ # Prevent GitHub Connect jobs running before we've had a chance to reset
450
+ # the configuration by setting the last run date to now.
451
+ if ! $RESTORE_SETTINGS ; then
452
+ echo " Setting last run date for GitHub Connect jobs ..." 1>&3
453
+ echo " now=$( date +%s.0000000) ; ghe-redis-cli mset timer:UpdateConnectInstallationInfo \$ now timer:UploadEnterpriseServerUserAccountsJob \$ now timer:UploadConnectMetricsJob \$ now timer:GitHubConnectPushNewContributionsJob \$ now" |
454
+ ghe-ssh " $GHE_HOSTNAME " -- /bin/sh 1>&3
455
+ fi
456
+
449
457
# When restoring to a host that has already been configured, kick off a
450
458
# config run to perform data migrations.
451
459
if $CLUSTER ; then
Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ while true; do
18
18
echo " fake redis data" > " $GHE_REMOTE_DATA_USER_DIR /redis/dump.rdb"
19
19
break
20
20
;;
21
+ mset)
22
+ # Fake accepting of mset command
23
+ shift 9
24
+ break
25
+ ;;
21
26
--remote)
22
27
# Fake accepting hostname argument
23
28
shift 3
You can’t perform that action at this time.
0 commit comments