Commit 9b389883 authored by Daniel STAN's avatar Daniel STAN

logall: généralisation du code à odlyd

parent 64b0f02f
......@@ -7,11 +7,13 @@
umask 0177
if [[ `hostname` == 'komaz' ]]; then
logs_src=/var/log/firewall/
logs_src=/var/log/firewall
elif [[ `hostname` == 'odlyd' ]]; then
logs_src=/var/log/firewall
else
exit 41
fi
logs_dst="/home/squid/`hostname`/logs"
logs_dst="/home/logs/`hostname`"
if [ ! -d "$logs_dst" ]; then
echo "Destination des logs inexistante"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment