Advise to set RUN_AS_USER when installing as a daemon

This commit is contained in:
kytv
2011-09-13 00:09:36 +00:00
parent 3a8a8c4256
commit 57afc4cd5d

View File

@@ -1539,6 +1539,10 @@ showUsage() {
exit 1
}
showsetusermesg() {
echo "Please edit $0 and set the variable RUN_AS_USER."
}
docommand() {
case "$COMMAND" in
'console')
@@ -1612,6 +1616,10 @@ docommand() {
'install')
installdaemon
if [ ! `grep ^RUN_AS_USER $0` ]; then
showsetusermesg
fi
;;
'remove')