forked from I2P_Developers/i2p.i2p
i2prouter: Add root check to restart and condrestart commands (ticket #1770)
This commit is contained in:
@@ -1922,6 +1922,7 @@ docommand() {
|
||||
;;
|
||||
|
||||
'restart')
|
||||
checkifstartingasroot
|
||||
checkUser touchlock "$COMMAND"
|
||||
if [ ! -n "$FIXED_COMMAND" ] ; then
|
||||
shift
|
||||
@@ -1931,6 +1932,7 @@ docommand() {
|
||||
;;
|
||||
|
||||
'condrestart')
|
||||
checkifstartingasroot
|
||||
checkUser touchlock "$COMMAND"
|
||||
if [ ! -n "$FIXED_COMMAND" ] ; then
|
||||
shift
|
||||
|
||||
Reference in New Issue
Block a user