From f6603c5c134d167d319b7531f1b1cefc6996da27 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 16 Aug 2010 17:02:10 -0700 Subject: remove low-level config dir usage --- functions/tech-support | 5 ++--- 1 file 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";; -- cgit v1.2.3