diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-10-19 15:42:46 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-10-19 15:42:46 -0700 |
commit | f7f90ef2c60c493c58378a13ce77b74443ec8796 (patch) | |
tree | 066cba923645d772ed7aa962d83bbd0c01c3af49 /etc/bash_completion.d | |
parent | 0437ad64813fb30beb05dcd76b50a1d95c1e3f00 (diff) | |
download | vyatta-cfg-f7f90ef2c60c493c58378a13ce77b74443ec8796.tar.gz vyatta-cfg-f7f90ef2c60c493c58378a13ce77b74443ec8796.zip |
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.
Diffstat (limited to 'etc/bash_completion.d')
-rwxr-xr-x | etc/bash_completion.d/20vyatta-cfg | 2 |
1 files changed, 1 insertions, 1 deletions
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 () |