From 1229e8c6f130c62c42900f424a772d4e9c5e8ef5 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 24 Oct 2007 10:01:04 -0700 Subject: add 'sudo' for 'system' and 'service/ssh' configuration commands. --- templates/system/options/reboot-on-panic/node.def | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'templates/system/options') diff --git a/templates/system/options/reboot-on-panic/node.def b/templates/system/options/reboot-on-panic/node.def index d84abc74..425f5a76 100644 --- a/templates/system/options/reboot-on-panic/node.def +++ b/templates/system/options/reboot-on-panic/node.def @@ -1,16 +1,10 @@ type: bool help: "Configure if kernel panic causes reboot" default: true -create: "sh -c \"if [ x$(@) == xfalse ]; \ +update: "sudo sh -c \"if [ x$(@) == xfalse ]; \ then \ echo 0 > /proc/sys/kernel/panic; \ else \ echo 60 > /proc/sys/kernel/panic; \ fi\" " -update: "sh -c \"if [ x$(@) == xfalse ]; \ -then \ - echo 0 > /proc/sys/kernel/panic; \ -else \ - echo 60 > /proc/sys/kernel/panic; \ -fi\" " -delete: "sh -c \"echo 60 > /proc/sys/kernel/panic\" " +delete: "sudo sh -c \"echo 60 > /proc/sys/kernel/panic\" " -- cgit v1.2.3