From f2654245aa52326febba556201852f408f82ee82 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 19 Apr 2018 11:28:11 +0100 Subject: [PATCH] Remove postgresql log files --- src/freedombone-logging | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedombone-logging b/src/freedombone-logging index 4edc7c69..b76b4028 100755 --- a/src/freedombone-logging +++ b/src/freedombone-logging @@ -96,6 +96,9 @@ function turn_off_postgresql_logging { fi 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 + if [ -d /var/log/postgresql ]; then + $REMOVE_FILES_COMMAND /var/log/postgresql/* + fi } function turn_on_postgresql_logging {