cleaned up XML code in tnccs-11 plugin

This commit is contained in:
Andreas Steffen
2013-04-04 17:12:07 +02:00
parent 9c84bbcbc0
commit 2a4915e87a
13 changed files with 95 additions and 92 deletions
+3 -2
View File
@@ -60,11 +60,12 @@ done
##########################################################################
# clear radius.log on FreeRadius servers
# clear daemon.log and radius.log on FreeRadius servers
#
for host in $RADIUSHOSTS
do
eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/freeradius/radius.log' > /dev/null 2>&1
ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/daemon.log /var/log/freeradius/radius.log; \
kill -SIGHUP `cat /var/run/rsyslogd.pid`' > /dev/null 2>&1
done