diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-07-16 11:20:11 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-07-16 11:20:11 +0100 |
commit | 6e89a7e1723904d520beba56bceb565e5129f65b (patch) | |
tree | 5e6beaec1c8afa3b1ba5395869f1d362a7cf2c54 /script/rails-post-deploy | |
parent | da90282fceb53887efc74faf3a9f90e6096e3033 (diff) |
Run optional "post_install" script
Diffstat (limited to 'script/rails-post-deploy')
-rwxr-xr-x | script/rails-post-deploy | 6 |
1 files changed, 6 insertions, 0 deletions
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 |