i2prouter: Add root check to restart and condrestart commands (ticket #1770)

This commit is contained in:
zzz
2017-01-24 14:44:17 +00:00
parent e47c628891
commit 8137661751

View File

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