Skip to content

Conversation

@lildude
Copy link
Member

@lildude lildude commented May 13, 2015

This PR removes the temporary /data/user/repositories-nw-backup directory that remains after successfully migrating the repository storage layout to the new format used on GHE 2.2.0 and later.

The removal of this directory allows for continual restoration to work on GHE 2.2.x.

/cc @rtomayko

@lildude
Copy link
Member Author

lildude commented May 13, 2015

Locally tests are failing. I'll investigate further and update this PR.

@lildude
Copy link
Member Author

lildude commented May 13, 2015

Fixed. It was a silly syntax error. All should be good now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can axe the if here too. rm -rf will exit non-zero when the directory doesn't exist.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, let's leave it. The sudo will cause problems on GHE < 2.0 and I don't think it's worth wrapping in a version check.

rtomayko added a commit that referenced this pull request May 13, 2015
Remove temporary 2.2 migration dir before restoring repos
@rtomayko rtomayko merged commit cc56033 into master May 13, 2015
@rubiojr rubiojr deleted the remove-netshard-migration-dir branch February 25, 2016 17:23
cjonsmith pushed a commit that referenced this pull request Sep 22, 2020
Relax 2.11 & 2.12 minimum required versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants