mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 10:18:09 -04:00
15 lines
399 B
Bash
15 lines
399 B
Bash
#!/bin/sh
|
|
|
|
/etc/rc.d/redmine_unicorn status > /dev/null 2>&1
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo 'Please, stop Redmine unicorn before running this script.'
|
|
exit 1
|
|
fi
|
|
|
|
cd @PREFIX@/share/@RUBY_PKGPREFIX@-redmine/app/plugins
|
|
|
|
GEM_HOME=@PREFIX@/share/@RUBY_PKGPREFIX@-redmine/gems \
|
|
GEM_PATH=@PREFIX@/share/@RUBY_PKGPREFIX@-redmine/gems \
|
|
@RUBY@ ../bin/rake redmine:plugins:migrate RAILS_ENV=production
|