summaryrefslogtreecommitdiff
path: root/functions/tech-support
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-16 17:02:10 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-16 17:02:10 -0700
commitf6603c5c134d167d319b7531f1b1cefc6996da27 (patch)
tree8b3d57b911a51294b0b59ef0ec63029b6cdc6636 /functions/tech-support
parent0fc2d1c2be1f6fdfb2ae5a84fcbde8ec4338ac53 (diff)
downloadvyatta-op-f6603c5c134d167d319b7531f1b1cefc6996da27.tar.gz
vyatta-op-f6603c5c134d167d319b7531f1b1cefc6996da27.zip
remove low-level config dir usage
Diffstat (limited to 'functions/tech-support')
-rwxr-xr-xfunctions/tech-support5
1 files changed, 2 insertions, 3 deletions
diff --git a/functions/tech-support b/functions/tech-support
index 8765959..4fff28c 100755
--- a/functions/tech-support
+++ b/functions/tech-support
@@ -340,9 +340,8 @@ header System Startup Files
ls -l /etc/rc?.d
header Bash History
-#cat $HOME/.bash_history
-for path in /opt/vyatta/config/active/system/login/user/* ; do
- user=$(basename $path);
+eval "cfg_users=($(cli-shell-api listActiveNodes system login user))"
+for user in "${cfg_users[@]}"; do
header "Bash History for $user";
case $user in
root) file="/root/.bash_history";;