mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
www/redmine50: fix logfile path for thin server
The ruby 'thin' server does not use an absolute path for logs file/dir. This leads to problems running Redmine on readonly bases. PR: 268641
This commit is contained in:
parent
3ac388e05d
commit
a95cefb83f
@ -1,5 +1,6 @@
|
||||
PORTNAME= redmine
|
||||
PORTVERSION= 5.0.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= https://www.redmine.org/releases/
|
||||
PKGNAMESUFFIX= 50
|
||||
|
@ -20,6 +20,7 @@ rcvar=redmine_enable
|
||||
command=ruby%%RUBY_SUFFIX%%
|
||||
|
||||
pidfile="%%WWWDIR%%/tmp/pids/thin.pid"
|
||||
logfile="/var/log/thin.log"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
@ -32,7 +33,7 @@ export PATH=$PATH:%%PREFIX%%/bin
|
||||
: ${redmine_user="%%WWWOWN%%"}
|
||||
: ${redmine_group="%%WWWGRP%%"}
|
||||
|
||||
command_args="-d -D -c %%WWWDIR%% -u ${redmine_user} -g ${redmine_group}"
|
||||
command_args="-d -D -c %%WWWDIR%% -u ${redmine_user} -g ${redmine_group} --log ${logfile}"
|
||||
start_cmd="%%PREFIX%%/bin/thin ${command_args} ${redmine_flags} start"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user