mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 23:06:56 +08:00
Set default user and group to daemon when running alprd
This commit is contained in:
@@ -14,8 +14,8 @@ START_DAEMON="yes"
|
|||||||
#LOGFILE="/var/log/alpr.log"
|
#LOGFILE="/var/log/alpr.log"
|
||||||
|
|
||||||
# User and group the daemon should run as
|
# User and group the daemon should run as
|
||||||
#USER="www-data"
|
#USER="daemon"
|
||||||
#GROUP="www-data"
|
#GROUP="daemon"
|
||||||
|
|
||||||
# Additional options that are passed to the daemon
|
# Additional options that are passed to the daemon
|
||||||
#DAEMON_OPTS=
|
#DAEMON_OPTS=
|
||||||
|
@@ -48,9 +48,9 @@ if [ -z $LOGFILE ]; then
|
|||||||
LOGFILE=/var/log/alpr.log
|
LOGFILE=/var/log/alpr.log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run as `www-data' if USER is not specified or is `root'
|
# Run as `daemon' if USER is not specified or is `root'
|
||||||
if [ -z $USER ]; then
|
if [ -z $USER ]; then
|
||||||
USER=www-data
|
USER=daemon
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If no group is specified, use USER
|
# If no group is specified, use USER
|
||||||
|
Reference in New Issue
Block a user