aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/make-crontab16
-rwxr-xr-xscript/rails-post-deploy6
2 files changed, 22 insertions, 0 deletions
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..6100bb1d0 100755
--- a/script/rails-post-deploy
+++ b/script/rails-post-deploy
@@ -96,6 +96,12 @@ if [ -n "$OPTION_THEME_URL" ]
then
echo "Installing $OPTION_THEME_URL using deprecated THEME_URL..."
script/plugin install --force $OPTION_THEME_URL
+ NAME=`sed -re 's/.*\/(.*)\.git.?/\1/'`
+ POST_INSTALL="vendor/plugins/$NAME/post_install.rb"
+ if [ -e $POST_INSTALL ]
+ then
+ script/runner $POST_INSTALL
+ fi
fi
# upgrade database