mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
Merge pull request #408 from blogic/userid
generic userid: use the new USERID api
This commit is contained in:
@@ -30,6 +30,7 @@ define Package/$(PKG_NAME)/default
|
||||
URL:=http://www.mosquitto.org/
|
||||
MAINTAINER:=Karl Palsson <karlp@remake.is>
|
||||
DEPENDS:= +librt
|
||||
USERID:=mosquitto=200:mosquitto=200
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
|
||||
@@ -14,7 +14,6 @@ SERVICE_DAEMONIZE=1
|
||||
SERVICE_WRITE_PID=1
|
||||
|
||||
start() {
|
||||
user_exists mosquitto 200 || user_add mosquitto 200
|
||||
if [ "$USE_UCI_CONFIG" -eq 1 ]; then
|
||||
CONF=/tmp/mosquitto.converted.$$.conf
|
||||
mosquitto.uci.convert -f $CONF
|
||||
|
||||
Reference in New Issue
Block a user