File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -560,9 +560,18 @@ echo \"$cmd_title\"
560
560
ghe-restore-repositories \" $GHE_HOSTNAME \" " )
561
561
562
562
cmd_title=$( log_info " Restoring Gists ..." )
563
- commands+=("
564
- echo \" $cmd_title \"
565
- ghe-restore-repositories-gist \" $GHE_HOSTNAME \" " )
563
+ if [ " $GHE_PARALLEL_ENABLED " = " yes" ]; then
564
+ # # Stagger ghe-restore-repositories-gist with ghe-restore-repositories to avoid
565
+ # # race condition to operate on same destination directory
566
+ commands+=("
567
+ echo \" $cmd_title \"
568
+ sleep 1
569
+ ghe-restore-repositories-gist \" $GHE_HOSTNAME \" " )
570
+ else
571
+ commands+=("
572
+ echo \" $cmd_title \"
573
+ ghe-restore-repositories-gist \" $GHE_HOSTNAME \" " )
574
+ fi
566
575
567
576
if [ " $GHE_BACKUP_PAGES " != " no" ]; then
568
577
cmd_title=$( log_info " Restoring Pages ..." )
You can’t perform that action at this time.
0 commit comments