summaryrefslogtreecommitdiff
path: root/net/prosody
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-10-08 03:45:30 +0200
committerJohn Crispin <blogic@openwrt.org>2014-10-08 03:45:30 +0200
commitd4042ec35eecb0d417af438a3cb80cc5b7d53ae7 (patch)
treedb4864a42da2eb6ea5b12fe9ad11549782eed212 /net/prosody
parent85695f4561e474a823347cdb2c7a9456d47c4cc6 (diff)
generic userid: use the new USERID api
recent changes in trunk allow us to specify the userid inside the openwrt makefile. the info is stored int he meta data of the IPK contorl file and users are generated by the new generic postinst trigger. Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'net/prosody')
-rw-r--r--net/prosody/Makefile1
-rw-r--r--net/prosody/files/prosody.init2
2 files changed, 1 insertions, 2 deletions
diff --git a/net/prosody/Makefile b/net/prosody/Makefile
index 4ba1d6fec..985eb4c99 100644
--- a/net/prosody/Makefile
+++ b/net/prosody/Makefile
@@ -28,6 +28,7 @@ define Package/prosody
DEPENDS:=+luafilesystem +libidn +luaexpat +luasec +libopenssl +libidn +liblua
TITLE:=XMPP server
URL:=http://prosody.im/
+ USERID:=prosody=54:prosody=54
endef
define Package/prosody/description
diff --git a/net/prosody/files/prosody.init b/net/prosody/files/prosody.init
index 9dd74f594..bab0ae7d5 100644
--- a/net/prosody/files/prosody.init
+++ b/net/prosody/files/prosody.init
@@ -14,8 +14,6 @@ RUN_USER=prosody
RUN_GROUP=prosody
start() {
- user_exists prosody 54 || user_add prosody 54
- group_exists prosody 54 || group_add prosody 54
[ -d /var/run/prosody ] || {
mkdir -m 0755 -p /var/run/prosody
chown prosody:prosody /var/run/prosody