fix: revert code style

Revert the code style of a piece of code
This commit is contained in:
Giulio Coa 2022-08-11 17:28:31 +02:00
parent dda4d99f10
commit 8100537a7c

View file

@ -3395,26 +3395,22 @@ confLogging() {
program_name='ovpn-server' program_name='ovpn-server'
fi fi
{ echo "if \$programname == '${program_name}' then /var/log/openvpn.log
echo "if \$programname == '${program_name}' then /var/log/openvpn.log" if \$programname == '${program_name}' then stop" | ${SUDO} tee /etc/rsyslog.d/30-openvpn.conf > /dev/null
echo "if \$programname == '${program_name}' then stop"
} | ${SUDO} tee /etc/rsyslog.d/30-openvpn.conf > /dev/null
{ echo "/var/log/openvpn.log
echo "/var/log/openvpn.log" {
echo "{" rotate 4
echo $'\t'"rotate 4" weekly
echo $'\t'"weekly" missingok
echo $'\t'"missingok" notifempty
echo $'\t'"notifempty" compress
echo $'\t'"compress" delaycompress
echo $'\t'"delaycompress" sharedscripts
echo $'\t'"sharedscripts" postrotate
echo $'\t'"postrotate" invoke-rc.d rsyslog rotate >/dev/null 2>&1 || true
echo $'\t'$'\t'"invoke-rc.d rsyslog rotate >/dev/null 2>&1 || true" endscript
echo $'\t'"endscript" }" | ${SUDO} tee /etc/logrotate.d/openvpn > /dev/null
echo "}"
} | ${SUDO} tee /etc/logrotate.d/openvpn > /dev/null
# Restart the logging service # Restart the logging service
case "${PLAT}" in case "${PLAT}" in