diff options
author | David Walter Seikel | 2016-12-09 15:26:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-12-09 15:26:13 +1000 |
commit | 5fb4d6dae088964f757db9fb68bdb0dc2548a724 (patch) | |
tree | 9a9285238e288bab823179be2e68d5b5fa391e4b | |
parent | Move the example sim to a sim skeleton, suitable for scripting. (diff) | |
download | opensim-SC_OLD-5fb4d6dae088964f757db9fb68bdb0dc2548a724.zip opensim-SC_OLD-5fb4d6dae088964f757db9fb68bdb0dc2548a724.tar.gz opensim-SC_OLD-5fb4d6dae088964f757db9fb68bdb0dc2548a724.tar.bz2 opensim-SC_OLD-5fb4d6dae088964f757db9fb68bdb0dc2548a724.tar.xz |
Only move the writable directories if they haven't been moved yet.
-rwxr-xr-x | InstallItAll.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/InstallItAll.sh b/InstallItAll.sh index 124fd5a..062f111 100755 --- a/InstallItAll.sh +++ b/InstallItAll.sh | |||
@@ -88,9 +88,11 @@ sudo chmod a+x $OSPATH/current/scripts/start-sim | |||
88 | 88 | ||
89 | for dir in AssetFiles backups caches config db logs | 89 | for dir in AssetFiles backups caches config db logs |
90 | do | 90 | do |
91 | sudo cp -fr $dir .. | 91 | if [ ! -f ../$dir ]; then |
92 | sudo rm -fr $dir | 92 | sudo cp -fr $dir .. |
93 | sudo ln -fs ../$dir $dir | 93 | sudo rm -fr $dir |
94 | sudo ln -fs ../$dir $dir | ||
95 | fi | ||
94 | done | 96 | done |
95 | 97 | ||
96 | sudo chmod ug+rwx $OSPATH/config | 98 | sudo chmod ug+rwx $OSPATH/config |