From 4af51299d8b32d40e3687b7297440a7950103dbe Mon Sep 17 00:00:00 2001 From: erxspin Date: Mon, 20 Feb 2017 00:03:15 +0600 Subject: [PATCH] prevent fail2ban service start failure by touching and setting owner of file freeswitch.log (recommited) --- 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 {} \;