forked from norman/fusionpbx-install.sh-github-mirror
Added minimal OpenVZ support. (#107)
This commit is contained in:
5
debian/resources/switch/package-systemd.sh
vendored
5
debian/resources/switch/package-systemd.sh
vendored
@@ -2,6 +2,11 @@ apt-get remove -y --force-yes freeswitch-systemd
|
||||
cp "$(dirname $0)/source/freeswitch.service.package" /lib/systemd/system/freeswitch.service
|
||||
cp "$(dirname $0)/source/etc.default.freeswitch.package" /etc/default/freeswitch
|
||||
chmod 644 /lib/systemd/system/freeswitch.service
|
||||
if [ -e /proc/user_beancounters ]
|
||||
then
|
||||
echo "Oh, your on OpenVZ! Setting a CPU Scheduler isn't possible :("
|
||||
sed -i -e "s/CPUSchedulingPolicy=rr/;CPUSchedulingPolicy=rr/g" /lib/systemd/system/freeswitch.service
|
||||
fi
|
||||
systemctl enable freeswitch
|
||||
systemctl unmask freeswitch.service
|
||||
systemctl daemon-reload
|
||||
|
||||
5
debian/resources/switch/source-systemd.sh
vendored
5
debian/resources/switch/source-systemd.sh
vendored
@@ -1,5 +1,10 @@
|
||||
cp "$(dirname $0)/source/freeswitch.service.source" /lib/systemd/system/freeswitch.service
|
||||
cp "$(dirname $0)/source/etc.default.freeswitch.source" /etc/default/freeswitch
|
||||
if [ -e /proc/user_beancounters ]
|
||||
then
|
||||
echo "Oh, your on OpenVZ! Setting a CPU Scheduler isn't possible :("
|
||||
sed -i -e "s/CPUSchedulingPolicy=rr/;CPUSchedulingPolicy=rr/g" /lib/systemd/system/freeswitch.service
|
||||
fi
|
||||
systemctl enable freeswitch
|
||||
systemctl unmask freeswitch.service
|
||||
systemctl daemon-reload
|
||||
|
||||
Reference in New Issue
Block a user