summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-15 18:06:19 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-15 18:06:19 -0800
commit48e5ad4a4b4d0d24e7a83b8c077353be5cdd315e (patch)
tree7cd3fef337830db4b68e2a917e0a30212d616eac /scripts
parentaff1b0af12c50e13340bb0501c9d9e7f84d56ece (diff)
downloadvyatta-cfg-48e5ad4a4b4d0d24e7a83b8c077353be5cdd315e.tar.gz
vyatta-cfg-48e5ad4a4b4d0d24e7a83b8c077353be5cdd315e.zip
clean up notification script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-cfg-notify4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/vyatta-cfg-notify b/scripts/vyatta-cfg-notify
index 07a385d..e0c56df 100755
--- a/scripts/vyatta-cfg-notify
+++ b/scripts/vyatta-cfg-notify
@@ -3,9 +3,7 @@
[ -r /etc/default/vyatta ] && source /etc/default/vyatta
declare cur_tty=$(ps -o tty= |head -n1)
-declare cur_uid=($(ps -o ruser= n |head -n1))
-declare cur_user=$(grep "[^:]\+:[^:]*:${cur_uid[0]}:" /etc/passwd \
- | cut -d ':' -f 1)
+declare cur_user=$(id -un)
declare -a ulist=( $(ps -a -o args,tty,ruser n \
| grep "^newgrp $VYATTA_CFG_GROUP_NAME" | cut -c 29-) )