BUG10812: change ovpnserver config if needed

This commit is contained in:
Alexander Marx
2015-04-22 15:02:02 +02:00
parent 92a6d92e82
commit 0a11f8761a

View File

@@ -172,6 +172,11 @@ if [ ! -e "/var/ipfire/fwhosts/customgeoipgrp" ]; then
chown nobody:nobody /var/ipfire/fwhosts/customgeoipgrp
fi
#Fix BUG10812 (openvpn server.conf has wrong collectd logfile path)
if grep -q "status /var/log/ovpnserver.log 30" /var/ipfire/ovpnserver.conf; then
sed -i "s/\/var\/log\/ovpnserver.log 30/\/var\/run\/ovpnserver.log 30/" /var/ipfire/ovpn/server.conf
fi
# Download/Update GeoIP databases.
/usr/local/bin/xt_geoip_update