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