aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-06-23 12:20:32 +0100
committerGareth Rees <gareth@mysociety.org>2014-07-10 12:42:29 +0100
commitdb2a8e0b20cd8ba3c36cba4ad1a06c70d7046dc3 (patch)
tree5a10aa903c2a32f7ef020fd44921541b5a9fee4e
parent64bc6d5eaf25934b9396e58943beb3db68a71091 (diff)
Remove mySociety log handling from install scripts
The deployment system should deal with putting logs in the desired place. As this script gets run on a variety of systems it can cause problems for non-mySociety reinstallers.
-rwxr-xr-xscript/rails-deploy-before-down25
1 files changed, 0 insertions, 25 deletions
diff --git a/script/rails-deploy-before-down b/script/rails-deploy-before-down
index 42284b00d..c44bfe552 100755
--- a/script/rails-deploy-before-down
+++ b/script/rails-deploy-before-down
@@ -32,31 +32,6 @@ else
OPTION_STAGING_SITE=1
fi
-# create initial log files
-if [ -e $TOP_DIR/../logs ]
-then
- # mySociety servers have logs dir in level above
- if ! [ -h log ] && [ -d log ]
- then
- # If log is a directory rather than a symlink, move that
- # directory out of the way:
- mv log log.original
- fi
- ln -sfn $TOP_DIR/../logs log
-else
- # otherwise just make the directory
- if [ -h log ]
- then
- # remove any old-style symlink first
- rm -f log
- fi
- mkdir -p log
-fi
-
-cd log
-touch development.log fastcgi.crash.log production.log test.log
-cd ..
-
# Returns 0 if an element is present in a bash array, and 1 otherwise
# Taken from: http://stackoverflow.com/a/8574392/223092
contains () {