Skip to content

Commit cc56033

Browse files
committed
Merge pull request #129 from github/remove-netshard-migration-dir
Remove temporary 2.2 migration dir before restoring repos
2 parents 8bed83e + e8148e3 commit cc56033

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

bin/ghe-restore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ if [ "$GHE_VERSION_MAJOR" -ge 2 ]; then
178178
fi
179179

180180
echo "Restoring Git repositories ..."
181+
# Remove temporary 2.2 storage migration directory if it exists
182+
echo "if [ -d /data/user/repositories-nw-backup ]; then sudo rm -rf /data/user/repositories-nw-backup; fi" |
183+
ghe-ssh "$GHE_HOSTNAME" -- /bin/sh 1>&3
181184
ghe-restore-repositories-${GHE_BACKUP_STRATEGY} "$GHE_HOSTNAME" 1>&3
182185

183186
echo "Restoring GitHub Pages ..."

0 commit comments

Comments
 (0)