mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 10:50:16 +00:00
fix: revert code style
Revert the code style of a piece of code
This commit is contained in:
parent
dda4d99f10
commit
8100537a7c
1 changed files with 15 additions and 19 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue