diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2009-04-06 11:51:07 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2009-04-06 11:51:07 -0700 |
commit | 7f2779df2bfd703f561ab542973c3128db7356d0 (patch) | |
tree | 4f2fdc6c0f965d2ee4bea7a7a4ecc1e6460d64c1 /scripts/vyatta-cfg-cmd-wrapper | |
parent | a491bc2e6ac9a29da186937a7c7071609b5816a4 (diff) | |
download | vyatta-cfg-7f2779df2bfd703f561ab542973c3128db7356d0.tar.gz vyatta-cfg-7f2779df2bfd703f561ab542973c3128db7356d0.zip |
add "save" command to cfg-cmd-wrapper
Diffstat (limited to 'scripts/vyatta-cfg-cmd-wrapper')
-rwxr-xr-x | scripts/vyatta-cfg-cmd-wrapper | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/vyatta-cfg-cmd-wrapper b/scripts/vyatta-cfg-cmd-wrapper index 518147d..8eddd5c 100755 --- a/scripts/vyatta-cfg-cmd-wrapper +++ b/scripts/vyatta-cfg-cmd-wrapper @@ -25,6 +25,9 @@ else export UNIONFS=unionfs fi +# permissions +## note: this script should be running as the vyattacfg group, e.g., with "sg". +## otherwise there may be permission problems with the files created. UMASK_SAVE=`umask` umask 0002 @@ -73,6 +76,10 @@ case "$1" in /opt/vyatta/sbin/my_commit RET_STATUS=$? ;; + save) + /opt/vyatta/sbin/vyatta-save-config.pl "${@:2}" + RET_STATUS=$? + ;; *) echo "Invalid command \"$1\" for vyatta-cfg-cmd-wrapper" RET_STATUS=1 |