From f7f90ef2c60c493c58378a13ce77b74443ec8796 Mon Sep 17 00:00:00 2001 From: slioch Date: Mon, 19 Oct 2009 15:42:46 -0700 Subject: add sudo back to save command, and add check to save script that validates vyatta config token at end of file. this will prevent the accidental overwrite of non vyatta config files. check on prevent existing files that don't contain ' === vyatta-config-version:' from being saved to. --- etc/bash_completion.d/20vyatta-cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index 6f1f54d..5f7896d 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -70,7 +70,7 @@ show () save () { - eval "umask 0002 ; ${vyatta_sbindir}/vyatta-save-config.pl $@" + eval "sudo sg vyattacfg \"umask 0002 ; ${vyatta_sbindir}/vyatta-save-config.pl $@\"" } discard () -- cgit v1.2.3