summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2012-03-12 16:41:05 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2012-03-12 16:41:05 +0000
commit32cec05f7a909b4dfe5e2e2519b726db12121e45 (patch)
treeb3f6318b77f94ae7bf5d70d8567fa79a422b29ce /www-apps/redmine/files
parentFix libNL SONAME #407785 by Alain B. (diff)
downloadgentoo-2-32cec05f7a909b4dfe5e2e2519b726db12121e45.tar.gz
gentoo-2-32cec05f7a909b4dfe5e2e2519b726db12121e45.tar.bz2
gentoo-2-32cec05f7a909b4dfe5e2e2519b726db12121e45.zip
Version bumped. Fixed directory owners and permissions, bug #406605.
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'www-apps/redmine/files')
-rw-r--r--www-apps/redmine/files/redmine.initd14
1 files changed, 12 insertions, 2 deletions
diff --git a/www-apps/redmine/files/redmine.initd b/www-apps/redmine/files/redmine.initd
index b185aeaaf003..1368da6ade50 100644
--- a/www-apps/redmine/files/redmine.initd
+++ b/www-apps/redmine/files/redmine.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/files/redmine.initd,v 1.3 2011/09/29 00:40:09 matsuu Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/files/redmine.initd,v 1.4 2012/03/12 16:41:05 matsuu Exp $
RAILS_ENV=${RAILS_ENV:-production}
REDMINE_DIR=${REDMINE_DIR:-/var/lib/redmine}
@@ -15,6 +15,16 @@ depend() {
use apache2 git-daemon mysql net postgresql svnserve
}
+start_pre() {
+ if [ ! -e "${REDMINE_DIR}/config/initializers/session_store.rb" ] ; then
+ eerror "Execute the following command to initlize environment:"
+ eerror
+ eerror "# emerge --config www-apps/redmine"
+ eerror
+ return 1
+ fi
+}
+
start() {
ebegin "Starting redmine"
cd "${REDMINE_DIR}"