From 7f8b12dcb1fca64c3ec067a0566497aefba5dcfc Mon Sep 17 00:00:00 2001 From: erxspin Date: Thu, 23 Feb 2017 23:50:31 +0600 Subject: [PATCH] prevent fail2ban service start failure by touching and setting owner of file freeswitch.log (recommited) (#64) --- debian/resources/switch/source-permissions.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/resources/switch/source-permissions.sh b/debian/resources/switch/source-permissions.sh index 829349e..66c3f66 100755 --- a/debian/resources/switch/source-permissions.sh +++ b/debian/resources/switch/source-permissions.sh @@ -1,4 +1,6 @@ #setup owner and group, permissions and sticky chown -R www-data:www-data /usr/local/freeswitch chmod -R ug+rw /usr/local/freeswitch +touch /var/log/freeswitch/freeswitch.log +chown -R www-data:www-data /var/log/freeswitch find /usr/local/freeswitch -type d -exec chmod 2770 {} \;