forked from I2P_Developers/i2p.i2p
Advise to set RUN_AS_USER when installing as a daemon
This commit is contained in:
@@ -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')
|
||||||
|
Reference in New Issue
Block a user