Last active
December 31, 2015 16:19
-
-
Save tcooper/8012913 to your computer and use it in GitHub Desktop.
Fixes /export -> /state/partition1 on a Rocks devel appliance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Fixes the /export -> /state/partition1 symlink on a Rocks devel appliance in Rocks 6.1 | |
# | |
# Author: Trevor Cooper <[email protected]> | |
# Twitter: @HPCDevOps | |
# GitHub: https://github.com/tcooper | |
# | |
if [ ! -L /export ]; then | |
( cd /export && tar -cf - ./rocks ) | ( cd /state/partition1 && tar -xf - ) | |
( cd /export && tar -cf - ./site-roll ) | ( cd /state/partition1 && tar -xf - ) | |
mv /export /export-old && ln -s /state/partition1 /export && \rm -rf /export-old | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment