aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/freeswitch/APKBUILD6
-rwxr-xr-xmain/freeswitch/freeswitch.initd3
2 files changed, 7 insertions, 2 deletions
diff --git a/main/freeswitch/APKBUILD b/main/freeswitch/APKBUILD
index eff7c9d631..356725187f 100644
--- a/main/freeswitch/APKBUILD
+++ b/main/freeswitch/APKBUILD
@@ -10,6 +10,8 @@ url="http://www.freeswitch.org"
arch="all"
license="GPL"
depends=""
+pkgusers="freeswitch"
+pkggroups="freeswitch"
makedepends="curl-dev unixodbc-dev zlib-dev openssl-dev ncurses-dev
autoconf automake libtool libpri-dev bash net-snmp-dev postgresql-dev
libiconv-dev subversion flac-dev libogg-dev libvorbis-dev
@@ -106,7 +108,7 @@ package(){
mv "$pkgdir"/usr/log "$pkgdir"/var/log/freeswitch
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
- chown -R freeswitch:freeswitch /var/*/freeswitch
+ chown -R freeswitch:freeswitch "$pkgdir"/var/*/freeswitch
}
@@ -175,4 +177,4 @@ md5sums="8c0609c00039513a1a81eda685845b37 freeswitch-5e4a514531de2a1d8040c3d306
769eaa127d4dbae687dc4aa961a8cc70 0002-mod_lua-alpine-module-search-path.patch
94516a9473e2283ab201f38cb2756741 modules.conf
c608cca8ad773acebf201f581438c7e7 freeswitch.confd
-51e0c45ae07a675f6008f95b1ab8f18e freeswitch.initd"
+06d70089ce96abc47a01bf69511a978a freeswitch.initd"
diff --git a/main/freeswitch/freeswitch.initd b/main/freeswitch/freeswitch.initd
index c6ff357c6a..ee07de5374 100755
--- a/main/freeswitch/freeswitch.initd
+++ b/main/freeswitch/freeswitch.initd
@@ -22,6 +22,9 @@ start() {
[ -n "${FREESWITCH_OPTS}" ] && \
OPTS="${OPTS} ${FREESWITCH_OPTS}"
+ checkpath -q -d \
+ -o ${FREESWITCH_USER:freeswitch}:${FREESWITCH_GROUP:-freeswitch}\
+ -m 0770 /var/run/freeswitch
ebegin "Starting Freeswitch"
limits
start-stop-daemon --start --quiet --exec /usr/bin/freeswitch \