aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerg <uinarf@autistici.org>2023-03-06 09:49:36 +0100
committererg <uinarf@autistici.org>2023-03-06 09:49:36 +0100
commit49cee960e98b99294816d8a18e11f64148ed599d (patch)
treec72b20479939c302a64f80831122bfd86973c454
parent137d2d58d967e837bc86ae8f33ae81396afc1298 (diff)
downloadPi_Relay-49cee960e98b99294816d8a18e11f64148ed599d.tar.gz
Pi_Relay-49cee960e98b99294816d8a18e11f64148ed599d.tar.bz2
Pi_Relay-49cee960e98b99294816d8a18e11f64148ed599d.zip
Fix username in shroom config
-rw-r--r--shroom_daemon5
1 files changed, 2 insertions, 3 deletions
diff --git a/shroom_daemon b/shroom_daemon
index 708589c..a221131 100644
--- a/shroom_daemon
+++ b/shroom_daemon
@@ -3,15 +3,14 @@
# Distributed under the terms of the GNU General Public Licence v2
# Set username you want process run with. Should be your regular user
-USERNAME="pipi"
-GROUP=$(id -g ${USERNAME})
+GROUP=$(id -g ${USER})
supervisor="supervise-daemon"
command_args_foreground="--foreground"
# Could also get dir to store pid file from XDG_RUNTIME_DIR
pidfile="/run/${RC_SVCNAME}.pid"
# pidfile="/run/user/${GROUP}/${RC_SVCNAME}.pid"
extra_started_commands="reload"
-command_user="${USERNAME}:${USERNAME}"
+command_user="${USER}:${USER}"
# command_user="${USER}:${GROUP}"
command="python /usr/local/sbin/pi_relay.py"
description="Daemon for shroombox"