From 5fb4d6dae088964f757db9fb68bdb0dc2548a724 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 9 Dec 2016 15:26:13 +1000 Subject: Only move the writable directories if they haven't been moved yet. --- InstallItAll.sh | 8 +++++--- 1 file 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 for dir in AssetFiles backups caches config db logs do - sudo cp -fr $dir .. - sudo rm -fr $dir - sudo ln -fs ../$dir $dir + if [ ! -f ../$dir ]; then + sudo cp -fr $dir .. + sudo rm -fr $dir + sudo ln -fs ../$dir $dir + fi done sudo chmod ug+rwx $OSPATH/config -- cgit v1.1