Remove postgresql log files
This commit is contained in:
parent
be74c3040a
commit
f2654245aa
|
@ -96,6 +96,9 @@ function turn_off_postgresql_logging {
|
||||||
fi
|
fi
|
||||||
sed -i 's|#log_destination|log_destination|g' /etc/postgresql/9.6/main/postgresql.conf
|
sed -i 's|#log_destination|log_destination|g' /etc/postgresql/9.6/main/postgresql.conf
|
||||||
sed -i "s|log_destination.*|log_destination = 'syslog'|g" /etc/postgresql/9.6/main/postgresql.conf
|
sed -i "s|log_destination.*|log_destination = 'syslog'|g" /etc/postgresql/9.6/main/postgresql.conf
|
||||||
|
if [ -d /var/log/postgresql ]; then
|
||||||
|
$REMOVE_FILES_COMMAND /var/log/postgresql/*
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function turn_on_postgresql_logging {
|
function turn_on_postgresql_logging {
|
||||||
|
|
Loading…
Reference in New Issue