aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortokoyami <tokoyami@tuta.io>2024-08-12 23:21:56 +0300
committerDavid Roman <davidroman96@gmail.com>2024-08-18 20:00:56 +0200
commitce2d279776c6de773d040d80f3a32a052656dac2 (patch)
treea2a9e90263aed0144463840c7414fed3424dfa15
parentdev-util/dmg2img: add 20240818 (diff)
downloadguru-ce2d279776c6de773d040d80f3a32a052656dac2.tar.gz
guru-ce2d279776c6de773d040d80f3a32a052656dac2.tar.bz2
guru-ce2d279776c6de773d040d80f3a32a052656dac2.zip
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@tuta.io> Closes: https://github.com/gentoo/guru/pull/231 Signed-off-by: David Roman <davidroman96@gmail.com>
-rw-r--r--www-apps/redlib/files/redlib.initd5
1 files changed, 3 insertions, 2 deletions
diff --git a/www-apps/redlib/files/redlib.initd b/www-apps/redlib/files/redlib.initd
index 16d9adeda1..4ae2564b98 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