commit:     ce2d279776c6de773d040d80f3a32a052656dac2
Author:     tokoyami <tokoyami <AT> tuta <DOT> io>
AuthorDate: Mon Aug 12 20:21:56 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sun Aug 18 18:00:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ce2d2797

www-apps/redlib: fix passing address in the OpenRC init file

ADDRESS is not supported as an environment variable currently.  It has
to be passed as an argument.

PORT has been changed to a normal variable and passed as argument to
make the init file similar to the SystemD service file where both
ADDRESS and PORT are passed as arguments.

Signed-off-by: tokoyami <tokoyami <AT> tuta.io>
Closes: https://github.com/gentoo/guru/pull/231
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 www-apps/redlib/files/redlib.initd | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/www-apps/redlib/files/redlib.initd 
b/www-apps/redlib/files/redlib.initd
index 16d9adeda..4ae2564b9 100644
--- a/www-apps/redlib/files/redlib.initd
+++ b/www-apps/redlib/files/redlib.initd
@@ -3,8 +3,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 # Environment variables for Redlib
-export ADDRESS=${ADDRESS:-80}
-export PORT=${PORT:-8080}
+ADDRESS=${ADDRESS:-0.0.0.0}
+PORT=${PORT:-8080}
 export REDLIB_DEFAULT_THEME=${REDLIB_DEFAULT_THEME:-system}
 export REDLIB_DEFAULT_FRONT_PAGE=${REDLIB_DEFAULT_FRONT_PAGE:-default}
 export REDLIB_DEFAULT_LAYOUT=${REDLIB_DEFAULT_LAYOUT:-card}
@@ -25,6 +25,7 @@ export REDLIB_FIXED_NAVAR=${REDLIB_FIXED_NAVAR:-on}
 name="Redlib"
 description="Private front-end for Reddit"
 command=/usr/bin/redlib
+command_args="-a ${ADDRESS} -p ${PORT}"
 pidfile="/var/run/${RC_SVCNAME}.pid"
 command_user="redlib"
 command_background=true

Reply via email to