diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2021-07-16 00:15:19 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-17 09:50:24 +0700 |
commit | 2bd6efa3b4a967ed074a372776645846271b59be (patch) | |
tree | 1ffc62c4b8b7a6becdc9b777eae705d8d807903a /network/elemental-ircd | |
parent | 7fe11fcfa47614a611bc5ac592fb5ae52bc69453 (diff) | |
download | slackbuilds-2bd6efa3b4a967ed074a372776645846271b59be.tar.gz |
network/elemental-ircd: Don't set $USER inside a script
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/elemental-ircd')
-rw-r--r-- | network/elemental-ircd/elemental-ircd.SlackBuild | 2 | ||||
-rw-r--r-- | network/elemental-ircd/rc.elemental-ircd | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/network/elemental-ircd/elemental-ircd.SlackBuild b/network/elemental-ircd/elemental-ircd.SlackBuild index 909db97e3c..68bb43d559 100644 --- a/network/elemental-ircd/elemental-ircd.SlackBuild +++ b/network/elemental-ircd/elemental-ircd.SlackBuild @@ -123,7 +123,7 @@ mkdir -p $PKG/var/lib/$PRGNAM # Copy rc.elemental-ircd into /etc/rc.d mkdir -p $PKG/etc/rc.d -sed -e "s/@USER@/$IRCD_UNAME/" $CWD/rc.$PRGNAM > $PKG/etc/rc.d/rc.$PRGNAM.new +sed -e "s/@IRCD_UNAME@/$IRCD_UNAME/" $CWD/rc.$PRGNAM > $PKG/etc/rc.d/rc.$PRGNAM.new # Copy logrotate script into /etc/logrotate.d mkdir -p $PKG/etc/logrotate.d diff --git a/network/elemental-ircd/rc.elemental-ircd b/network/elemental-ircd/rc.elemental-ircd index 9af9f68ef9..5672681793 100644 --- a/network/elemental-ircd/rc.elemental-ircd +++ b/network/elemental-ircd/rc.elemental-ircd @@ -2,13 +2,13 @@ # # elemental-ircd startup script for Slackware -USER="@USER@" +IRCD_USER="@IRCD_UNAME@" PIDFILE="/var/run/elemental-ircd/ircd.pid" PID=`cat $PIDFILE 2>/dev/null` ircd_start() { echo "Starting elemental-ircd." - su - $USER -c "/usr/bin/ircd -pidfile $PIDFILE" + su - $IRCD_USER -c "/usr/bin/ircd -pidfile $PIDFILE" } ircd_stop() { |