Make non-use of repo default and fix last setfacl error
Make non-use of repo default and fix last setfacl error USE_UNOFFICIAL_ARM_REPO needs to be set to 1 to use repo.
This commit is contained in:
parent
dfb0ab2990
commit
acadeb2783
|
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
apt-get update && apt-get install -y --force-yes curl memcached haveged
|
apt-get update && apt-get install -y --force-yes curl memcached haveged
|
||||||
|
USE_UNOFFICIAL_ARM_REPO=0
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
if [ $arch = 'armv7l' ]; then
|
if [ $arch = 'armv7l' ] && [ $USE_UNOFFICIAL_ARM_REPO -eq 1 ]; then
|
||||||
echo "deb http://repo.sip247.com/debian/freeswitch-stable-armhf/ jessie main" > /etc/apt/sources.list.d/freeswitch.list
|
echo "deb http://repo.sip247.com/debian/freeswitch-stable-armhf/ jessie main" > /etc/apt/sources.list.d/freeswitch.list
|
||||||
curl http://repo.sip247.com/debian/sip247.com.gpg.key | apt-key add -
|
curl http://repo.sip247.com/debian/sip247.com.gpg.key | apt-key add -
|
||||||
else
|
else
|
||||||
|
|
@ -16,7 +17,7 @@ apt-get update && apt-get install -y --force-yes freeswitch-all freeswitch-all-d
|
||||||
chown -R freeswitch:freeswitch /var/lib/freeswitch
|
chown -R freeswitch:freeswitch /var/lib/freeswitch
|
||||||
chmod -R g+s /var/lib/freeswitch
|
chmod -R g+s /var/lib/freeswitch
|
||||||
setfacl -R -m u:www-data:rwx,g:www-data:rwx /var/lib/freeswitch
|
setfacl -R -m u:www-data:rwx,g:www-data:rwx /var/lib/freeswitch
|
||||||
setfacl -R -m -d u:www-data:rwx,g:www-data:rwx /var/lib/freeswitch
|
setfacl -R -d -m u:www-data:rwx,g:www-data:rwx /var/lib/freeswitch
|
||||||
|
|
||||||
chown -R freeswitch:freeswitch /usr/share/freeswitch
|
chown -R freeswitch:freeswitch /usr/share/freeswitch
|
||||||
chmod -R g+s /usr/share/freeswitch
|
chmod -R g+s /usr/share/freeswitch
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue