slackbuilds

My Slackbuilds
Log | Files | Refs | README

commit 739ec900efe908526b937a7a85bb97db533e5535
parent 0fed111f691bc06dab097d07e7f6c73ae2e090ab
Author: Slack Coder <slackcoder@server.ky>
Date:   Sun, 20 Jul 2025 14:22:50 -0500

gmid: Remove use of sudo

Using sudo this way creates noise in the logs.  Reintroduce if there is
a better way.

Diffstat:
Mgmid/files/rc.gmid.new | 6++----
Mgmid/gmid.SlackBuild | 2+-
2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/gmid/files/rc.gmid.new b/gmid/files/rc.gmid.new @@ -3,8 +3,6 @@ # Startup/shutdown script for the gmid gemini service. # -GMID_USER=${GMID_USER:-root} - create_gmid_run_dir() { if [ ! -d /run/gmid/ ]; then mkdir -p /run/gmid @@ -40,7 +38,7 @@ gmid_start() { fi echo "Starting gmid gemini service" - sudo -u "$GMID_USER" -- gmid \ + gmid \ -c /etc/gmid.conf \ -P /run/gmid/gmid.pid } @@ -71,7 +69,7 @@ gmid_stop() { return fi - sudo -u "$GMID_USER" -- kill -TERM "$pid" + kill -TERM "$pid" } case "$1" in diff --git a/gmid/gmid.SlackBuild b/gmid/gmid.SlackBuild @@ -4,7 +4,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gmid VERSION=${VERSION:-2.1.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_slackcoder} PKGTYPE=${PKGTYPE:-txz}