diff --git a/debian/resources/switch/source-systemd.sh b/debian/resources/switch/source-systemd.sh index 5feb6f6..dc34e3d 100644 --- a/debian/resources/switch/source-systemd.sh +++ b/debian/resources/switch/source-systemd.sh @@ -1,6 +1,5 @@ -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:' +cp "$(dirname $0)/source/freeswitch.service.source" /lib/systemd/system/freeswitch.service +cp "$(dirname $0)/source/etc.default.freeswitch" /etc/default/freeswitch systemctl enable freeswitch systemctl unmask freeswitch.service systemctl daemon-reload