fixed rsyslog deprecated discard from ~ to stop

This commit is contained in:
Chuah Chee Shian 2019-04-05 00:39:00 +08:00 committed by GitHub
parent e4fd370378
commit 4f34bd3303
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1021,7 +1021,7 @@ confOVPN() {
confLogging() { confLogging() {
echo "if \$programname == 'ovpn-server' then /var/log/openvpn.log echo "if \$programname == 'ovpn-server' then /var/log/openvpn.log
if \$programname == 'ovpn-server' then ~" | $SUDO tee /etc/rsyslog.d/30-openvpn.conf > /dev/null if \$programname == 'ovpn-server' then stop" | $SUDO tee /etc/rsyslog.d/30-openvpn.conf > /dev/null
echo "/var/log/openvpn.log echo "/var/log/openvpn.log
{ {