From 293f5ae63c6c2d375aa580e2abd896393e0e866a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 16 Aug 2016 11:39:48 -0600 Subject: [PATCH] Update and rename source_systemd.sh to source-systemd.sh --- debian/resources/switch/source-systemd.sh | 6 ++++++ debian/resources/switch/source_systemd.sh | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 debian/resources/switch/source-systemd.sh delete mode 100644 debian/resources/switch/source_systemd.sh diff --git a/debian/resources/switch/source-systemd.sh b/debian/resources/switch/source-systemd.sh new file mode 100644 index 0000000..5feb6f6 --- /dev/null +++ b/debian/resources/switch/source-systemd.sh @@ -0,0 +1,6 @@ +cp "$(dirname $0)/source/freeswitch.service" /lib/systemd/system/freeswitch.service +cp "$(dirname $0)/source/etc.default.freeswitch.source" /etc/default/freeswitch +sed -i /lib/systemd/system/freeswitch.service -e s:'-u freeswitch -g freeswitch:-u www-data -g www-data:' +systemctl enable freeswitch +systemctl unmask freeswitch.service +systemctl daemon-reload diff --git a/debian/resources/switch/source_systemd.sh b/debian/resources/switch/source_systemd.sh deleted file mode 100644 index 8b13789..0000000 --- a/debian/resources/switch/source_systemd.sh +++ /dev/null @@ -1 +0,0 @@ -