diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-09-26 12:45:27 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-09-26 14:07:03 +0100 |
commit | 718f6bf393c5cfe180a3f7c41309320294292574 (patch) | |
tree | cb90b77e75c9951c5a7b1667b0be1ade6d29d7a0 /script/rails-post-deploy | |
parent | 6d5390372a4515db3a7e9bb02831d379a468c4ee (diff) |
don't cause an error if script has been run before (due to trying to create existing symlink for downloads)
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 |