aboutsummaryrefslogtreecommitdiffstats
path: root/script/rails-post-deploy
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-10-13 00:31:56 +0200
committerDavid Cabo <david@calibea.com>2011-10-13 00:31:56 +0200
commit6b19c36f114624d7e53be8edc9ee490ecd20d0b0 (patch)
tree7741c3655fe5e3cbc90dd20a4626ac7acc1bf6b0 /script/rails-post-deploy
parent6800b9ff3fc77aa441afbdb0b0196afbdd87d8b4 (diff)
parente13127a8ebc8bf8379d92f778af5a2bb6931d80c (diff)
Merge branch 'release/0.4' into develop
Diffstat (limited to 'script/rails-post-deploy')
-rwxr-xr-xscript/rails-post-deploy7
1 files changed, 5 insertions, 2 deletions
diff --git a/script/rails-post-deploy b/script/rails-post-deploy
index 437b7255a..df9f67528 100755
--- a/script/rails-post-deploy
+++ b/script/rails-post-deploy
@@ -45,8 +45,11 @@ else
mkdir -p log
fi
# link the "downloads" directory in the cache to somewhere it can be served
-mkdir -p $APP_DIR/cache/zips/download
-ln -s $APP_DIR/cache/zips/download $APP_DIR/public/
+if [ ! -e $APP_DIR/public/download ]
+then
+ mkdir -p $APP_DIR/cache/zips/download
+ ln -s $APP_DIR/cache/zips/download $APP_DIR/public/
+fi
cd log
touch development.log fastcgi.crash.log production.log test.log