summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-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";;