diff options
Diffstat (limited to 'script')
-rwxr-xr-x | script/load-exim-logs | 5 | ||||
-rwxr-xr-x | script/make-crontab | 16 | ||||
-rwxr-xr-x | script/rails-post-deploy | 16 |
3 files changed, 21 insertions, 16 deletions
diff --git a/script/load-exim-logs b/script/load-exim-logs index 5ca0c66f8..00b6b9825 100755 --- a/script/load-exim-logs +++ b/script/load-exim-logs @@ -5,7 +5,10 @@ LOC=`dirname "$0"` # Specific file if specified if [ x$1 != x ] then - f=`abspath "$1"` + case "$1" in + /*) f=$1 ;; + *) f=$(pwd)/$1 ;; + esac cd "$LOC" bundle exec ./runner 'EximLog.load_file("'$f'")' exit diff --git a/script/make-crontab b/script/make-crontab new file mode 100755 index 000000000..1b4fbabbd --- /dev/null +++ b/script/make-crontab @@ -0,0 +1,16 @@ +#!/usr/bin/env python +import re + +mailto = "recipient-of-any-errors@localhost" +user = "user-to-run-as" +location = "/path/to/alaveteli" + +template = open("config/crontab.ugly").read() +template = re.sub(r"MAILTO=.*", "MAILTO=%s" % mailto, template) +template = template.replace("!!(*= $user *)!!", user) +template = re.sub(r"/data/vhost/.*/script", location + "/script", template) + +print template + + + diff --git a/script/rails-post-deploy b/script/rails-post-deploy index 193d0bbec..977805eb5 100755 --- a/script/rails-post-deploy +++ b/script/rails-post-deploy @@ -82,21 +82,7 @@ fi bundle install $bundle_install_options -if [ -n "$OPTION_THEME_URLS" ] -then - for THEME in "${OPTION_THEME_URLS[@]}" - do - echo "Installing $THEME..." - script/plugin install --force $THEME - done -fi - -# Old version of the above, for backwards compatibility -if [ -n "$OPTION_THEME_URL" ] -then - echo "Installing $OPTION_THEME_URL using deprecated THEME_URL..." - script/plugin install --force $OPTION_THEME_URL -fi +bundle exec rake themes:install # upgrade database bundle exec rake db:migrate #--trace |