Browse Source

same fix to the dev scripts for permissions on moh dir

Richard Neese 10 years ago
parent
commit
f7bb42f355

+ 2 - 0
install/Debian/Fusionpbx-Debian-Embedded-Appliance-Install.sh

@@ -913,8 +913,10 @@ find "/var/lib/fusionpbx/db" -type d -exec chmod 777 {} +
 find "/var/lib/fusionpbx/db" -type f -exec chmod 666 {} +
 
 #Linking moh dir so freeswitch can read in the moh files
+mkdir /usr/share/freeswitch/sounds/music
 ln -s /var/lib/fusionpbx/sounds/music /usr/share/freeswitch/sounds/music/fusionpbx
 ln -s /var/lib/fusionpbx/sounds/custom /usr/share/freeswitch/sounds/
+chown -R www-data:www-data /var/lib/fusionpbx/sounds
 
 #------end of fusionpbx install and configuration-----
 

+ 3 - 0
install/Debian/Fusionpbx-Debian-Package-Install.sh

@@ -920,8 +920,11 @@ find "/var/lib/fusionpbx/db" -type d -exec chmod 777 {} +
 find "/var/lib/fusionpbx/db" -type f -exec chmod 666 {} +
 
 #Linking moh dir so freeswitch can read in the moh files
+mkdir /usr/share/freeswitch/sounds/music
 ln -s /var/lib/fusionpbx/sounds/music /usr/share/freeswitch/sounds/music/fusionpbx
 ln -s /var/lib/fusionpbx/sounds/custom /usr/share/freeswitch/sounds/
+chown -R www-data:www-data /var/lib/fusionpbx/sounds
+
 #------end of fusionpbx install and configuration-----
 
 #-----Installing Fail2Ban/monit Protection services------