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:
Oleg Ginzburg 2023-01-02 17:19:12 +01:00 committed by Mikael Urankar
parent 3ac388e05d
commit a95cefb83f
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= redmine
PORTVERSION= 5.0.4
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= https://www.redmine.org/releases/
PKGNAMESUFFIX= 50

View File

@ -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"