redmine: add missing 'migrate' command prior to starting the application

required for plugins with a database component
see: http://www.redmine.org/projects/redmine/wiki/Plugins
This commit is contained in:
Aaron Andersen 2018-10-16 15:08:24 -04:00
parent 9ea9d86126
commit 4ed7d822be

View File

@ -292,6 +292,7 @@ in
# execute redmine required commands prior to starting the application
# NOTE: su required in case using mysql socket authentication
/run/wrappers/bin/su -s ${pkgs.bash}/bin/bash -m -l redmine -c '${bundle} exec rake db:migrate'
/run/wrappers/bin/su -s ${pkgs.bash}/bin/bash -m -l redmine -c '${bundle} exec rake redmine:plugins:migrate'
/run/wrappers/bin/su -s ${pkgs.bash}/bin/bash -m -l redmine -c '${bundle} exec rake redmine:load_default_data'