diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2011-06-15 16:59:39 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2011-06-15 16:59:39 -0700 |
commit | 3fc5d448cdc043c815b177ade72305d970c9f84c (patch) | |
tree | 7b3565abfa0410c883c9cbfb45b8cce2c4562c3f /scripts/vyatta-cfg-cmd-wrapper | |
parent | f54e0757c8559945a8c40f3847799f2a92ecf2bf (diff) | |
download | vyatta-cfg-3fc5d448cdc043c815b177ade72305d970c9f84c.tar.gz vyatta-cfg-3fc5d448cdc043c815b177ade72305d970c9f84c.zip |
Bugfix 6767: Move log files from /tmp to /var/log/vyatta.
Diffstat (limited to 'scripts/vyatta-cfg-cmd-wrapper')
-rwxr-xr-x | scripts/vyatta-cfg-cmd-wrapper | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/vyatta-cfg-cmd-wrapper b/scripts/vyatta-cfg-cmd-wrapper index b0ec349..952112f 100755 --- a/scripts/vyatta-cfg-cmd-wrapper +++ b/scripts/vyatta-cfg-cmd-wrapper @@ -26,6 +26,8 @@ export vyatta_sysconfdir=/opt/vyatta/etc export vyatta_sbindir=/opt/vyatta/sbin +LOGFILE=/var/log/vyatta/vyatta-commit.log + # allow env variable to override default session id (ppid). this enables # the script to handle cases where the invocations can come from # different parents. @@ -68,9 +70,9 @@ case "$1" in ;; commit) export COMMIT_VIA=cfg-cmd-wrapper - ${vyatta_sbindir}/my_commit -a >> /tmp/vyatta-commit.log - ${vyatta_sbindir}/my_commit -s >> /tmp/vyatta-commit.log - exec ${vyatta_sbindir}/my_commit -e -d >> /tmp/vyatta-commit.log + ${vyatta_sbindir}/my_commit -a >> $LOGFILE + ${vyatta_sbindir}/my_commit -s >> $LOGFILE + exec ${vyatta_sbindir}/my_commit -e -d >> $LOGFILE ;; commit_with_error) exec ${vyatta_sbindir}/my_commit |