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'
|
||||
fi
|
||||
|
||||
{
|
||||
echo "if \$programname == '${program_name}' then /var/log/openvpn.log"
|
||||
echo "if \$programname == '${program_name}' then stop"
|
||||
} | ${SUDO} tee /etc/rsyslog.d/30-openvpn.conf > /dev/null
|
||||
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 "/var/log/openvpn.log"
|
||||
echo "{"
|
||||
echo $'\t'"rotate 4"
|
||||
echo $'\t'"weekly"
|
||||
echo $'\t'"missingok"
|
||||
echo $'\t'"notifempty"
|
||||
echo $'\t'"compress"
|
||||
echo $'\t'"delaycompress"
|
||||
echo $'\t'"sharedscripts"
|
||||
echo $'\t'"postrotate"
|
||||
echo $'\t'$'\t'"invoke-rc.d rsyslog rotate >/dev/null 2>&1 || true"
|
||||
echo $'\t'"endscript"
|
||||
echo "}"
|
||||
} | ${SUDO} tee /etc/logrotate.d/openvpn > /dev/null
|
||||
echo "/var/log/openvpn.log
|
||||
{
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
invoke-rc.d rsyslog rotate >/dev/null 2>&1 || true
|
||||
endscript
|
||||
}" | ${SUDO} tee /etc/logrotate.d/openvpn > /dev/null
|
||||
|
||||
# Restart the logging service
|
||||
case "${PLAT}" in
|
||||
|
|
Loading…
Reference in a new issue