Merge pull request #757 in FS/freeswitch from ~HANSMI/freeswitch:fs-8948 to master

* commit '3b4b839ed47fd089db82e2b1c709f894d622823d':
  FS-8948 #resolve Handle non-existent config in Debian postinst
This commit is contained in:
William King 2016-03-17 12:04:33 -05:00
commit 8fdd4f3af7
1 changed files with 3 additions and 1 deletions

View File

@ -31,8 +31,10 @@ case "$1" in
done
if [ ! -d "/etc/freeswitch" ]; then
mkdir -p /etc/freeswitch/
if [ -e /usr/share/freeswitch/conf/vanilla/freeswitch.xml ]; then
cp -a /usr/share/freeswitch/conf/vanilla/* /etc/freeswitch/
fi
fi
if [ ! -d "/etc/freeswitch/tls" ]; then
mkdir -p /etc/freeswitch/tls/
chown freeswitch:freeswitch /etc/freeswitch/tls