logall: généralisation du code à odlyd
This commit is contained in:
parent
64b0f02ffc
commit
9b3898835a
1 changed files with 4 additions and 2 deletions
|
@ -7,11 +7,13 @@
|
||||||
umask 0177
|
umask 0177
|
||||||
|
|
||||||
if [[ `hostname` == 'komaz' ]]; then
|
if [[ `hostname` == 'komaz' ]]; then
|
||||||
logs_src=/var/log/firewall/
|
logs_src=/var/log/firewall
|
||||||
|
elif [[ `hostname` == 'odlyd' ]]; then
|
||||||
|
logs_src=/var/log/firewall
|
||||||
else
|
else
|
||||||
exit 41
|
exit 41
|
||||||
fi
|
fi
|
||||||
logs_dst="/home/squid/`hostname`/logs"
|
logs_dst="/home/logs/`hostname`"
|
||||||
|
|
||||||
if [ ! -d "$logs_dst" ]; then
|
if [ ! -d "$logs_dst" ]; then
|
||||||
echo "Destination des logs inexistante"
|
echo "Destination des logs inexistante"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue