summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepti Kulkarni <deepti@vyatta.com>2012-02-28 05:55:07 -0800
committerDeepti Kulkarni <deepti@vyatta.com>2012-02-28 05:55:07 -0800
commitd5cf71b5284392f41abfa7e28808aa0f078701b2 (patch)
tree3476cfa4e404996382ef3102a2f3ad5963c988a6
parent0c924df37d7887d381fab3e72c92b6508ad7fa37 (diff)
downloadvyatta-cfg-d5cf71b5284392f41abfa7e28808aa0f078701b2.tar.gz
vyatta-cfg-d5cf71b5284392f41abfa7e28808aa0f078701b2.zip
Revert "Bug fix for 4718 - Log successful commits in messages file."
This reverts commit ead984061d0fef9de47cde118ddab40ff73c0fa8.
-rw-r--r--functions/interpreter/vyatta-cfg-run9
1 files changed, 0 insertions, 9 deletions
diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run
index 3586ea9..7558ffa 100644
--- a/functions/interpreter/vyatta-cfg-run
+++ b/functions/interpreter/vyatta-cfg-run
@@ -101,9 +101,6 @@ vyatta_config_show ()
| eval "${VYATTA_PAGER:-cat}"
}
-declare cur_tty=$(ps -o tty= |head -n1)
-declare cur_user=$(id -un)
-
vyatta_config_commit ()
{
if ! vyatta_cli_shell_api sessionChanged; then
@@ -130,12 +127,6 @@ vyatta_config_commit ()
export COMMIT_COMMENT="$comment"
export COMMIT_VIA=cli
/opt/vyatta/sbin/my_commit "${args[@]}" 2>&1
- local ret_value=$?
-
- if [ "$ret_value" == "0" ]; then
- logger -p warning -t commit "Active configuration has been changed by user\
- '$cur_user' on '$cur_tty'"
- fi
unset COMMIT_VIA
unset COMMIT_COMMENT
}