Set default user and group to daemon when running alprd

This commit is contained in:
Emmanuel Papin
2014-12-15 00:34:28 +01:00
parent 9beb001d3a
commit 18f02cd2cd
2 changed files with 4 additions and 4 deletions

View File

@@ -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=

View File

@@ -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