Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 784 → Rev 785

/alcasar.sh
1142,6 → 1142,9
[ -e /etc/init.d/dnsmasq.default ] || cp /etc/init.d/dnsmasq /etc/init.d/dnsmasq.default
$SED "/daemon/a \$dnsmasq -C /etc/dnsmasq-blackhole.conf \$OPTIONS" /etc/init.d/dnsmasq
$SED "/killproc \$DAEMON_NAME/a killproc \$DAEMON_NAME" /etc/init.d/dnsmasq
# Optionnellement on active les logs DNS des clients --> traiter les uninstall et update
[ -e /etc/sysconfig/dnsmasq.default ] || cp /etc/sysconfig/dnsmasq /etc/sysconfig/dnsmasq.conf.default
$SED "s?^OPTIONS=.*?OPTIONS=\"-q --log-facility=/var/log/dnsmasq/queries.log\"?g" /etc/sysconfig/dnsmasq
} # End dnsmasq
 
##########################################################
/conf/logrotate.d/dnsmasq
0,0 → 1,10
/var/log/dnsmasq/queries.log /var/log/dnsmasq/lease.log{
missingok
rotate 365
daily
dateext
sharedscripts
postrotate
/etc/init.d/dnsmasq restart
endscript
}
/scripts/sbin/alcasar-uninstall.sh
145,6 → 145,7
[ -e /etc/dnsmasq-blackhole.conf ] && rm -f /etc/dnsmasq-blackhole.conf && echo -n "2, "
[ -d /etc/dnsmasq.d ] && rm -rf /etc/dnsmasq.d
[ -e /etc/init.d/dnsmasq.default ] && mv /etc/init.d/dnsmasq.default /etc/init.d/dnsmasq && echo -n "3"
[ -e /etc/sysconfig/dnsmasq.default ] && mv /etc/sysconfig/dnsmasq.default /etc/sysconfig/dnsmasq && echo -n "4"
else echo -n "uninstalled"
fi
sleep 1
208,6 → 209,7
[ -e /etc/logrotate.d/squid ] && rm -f /etc/logrotate.d/squid && echo -n "8, "
[ -e /etc/logrotate.d/radiusd ] && rm -f /etc/logrotate.d/radiusd && echo -n "9, "
[ -e /etc/logrotate.d/ulogd ] && rm -f /etc/logrotate.d/ulogd && echo -n "10"
[ -e /etc/logrotate.d/dnsmasq ] && rm -f /etc/logrotate.d/dnsmasq && echo -n "11"
sleep 1
 
#nettoyage (on retire les services supprimés ou remplacés dans la nouvelle version)