aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-12-09 15:26:13 +1000
committerDavid Walter Seikel2016-12-09 15:26:13 +1000
commit5fb4d6dae088964f757db9fb68bdb0dc2548a724 (patch)
tree9a9285238e288bab823179be2e68d5b5fa391e4b
parentMove the example sim to a sim skeleton, suitable for scripting. (diff)
downloadopensim-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-xInstallItAll.sh8
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
89for dir in AssetFiles backups caches config db logs 89for dir in AssetFiles backups caches config db logs
90do 90do
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
94done 96done
95 97
96sudo chmod ug+rwx $OSPATH/config 98sudo chmod ug+rwx $OSPATH/config