diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-10-10 13:21:22 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-10-10 13:21:22 +0100 |
commit | 189c7c80c9e56d09d8dd441a924d687aa2b9ed5e (patch) | |
tree | 8aac4844a602458276b8d61f8482b31bae865d67 /script/rails-post-deploy | |
parent | 247a24cde3954b7f7b3cbb2e3b624669b6e6e61d (diff) | |
parent | f6b93d8cb5fbe4e4d2c96bf732f76102d54ce9cd (diff) |
Merge branch 'release/0.4' into develop
Diffstat (limited to 'script/rails-post-deploy')
-rwxr-xr-x | script/rails-post-deploy | 7 |
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 |