public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: www-apps/redlib/files/
@ 2024-08-18 18:03 David Roman
  0 siblings, 0 replies; only message in thread
From: David Roman @ 2024-08-18 18:03 UTC (permalink / raw
  To: gentoo-commits

commit:     ce2d279776c6de773d040d80f3a32a052656dac2
Author:     tokoyami <tokoyami <AT> tuta <DOT> io>
AuthorDate: Mon Aug 12 20:21:56 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-08-18 18:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-18 18:03 [gentoo-commits] repo/proj/guru:dev commit in: www-apps/redlib/files/ David Roman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox