diff options
author | Michael Stegeman | 2019-12-12 15:00:21 -0900 |
---|---|---|
committer | Michael Stegeman | 2019-12-12 15:00:21 -0900 |
commit | 00a0d48b5e5780d8a0dbb6aae08c1d3d37350ace (patch) | |
tree | 6b469072f78b8b63301ca2d208106dfceb9034d4 | |
parent | 7846927687beb9787b6c18381c4d14631b0815ee (diff) | |
download | aur-00a0d48b5e5780d8a0dbb6aae08c1d3d37350ace.tar.gz |
Fix startup permissions.
-rw-r--r-- | PKGBUILD | 11 | ||||
-rw-r--r-- | webthings-gateway.sh | 7 |
2 files changed, 13 insertions, 5 deletions
@@ -1,18 +1,21 @@ # Maintainer: Michael Stegeman <mstegeman@mozilla.com> pkgname=webthings-gateway pkgver=0.10.0 -pkgrel=1 +pkgrel=2 pkgdesc='WebThings Gateway by Mozilla' url='https://iot.mozilla.org/gateway/' arch=('x86_64') license=('MPL2') depends=( - 'nodejs>=8.0.0' # carbon (8.x) is what our other distros use - 'nodejs<13.0.0' # we only test up to 12.x + 'nodejs>=8.0.0' # carbon (8.x) is what our other distros use + 'nodejs<13.0.0' # we only test up to 12.x 'pagekite' 'python-adapt-parser' + 'python-argparse' # this is really a dependency of python-adapt-parser 'python-gateway-addon' 'python-pip' + 'python-pyee' # this is really a dependency of python-adapt-parser + 'python-six' # this is really a dependency of python-adapt-parser ) makedepends=( 'git' @@ -47,7 +50,7 @@ sha256sums=( '60a275bf3a4b93defcc2a47a0833e9baf2e019443f401a4399e81277f8c9bf5c' 'e8f4faa6fb1778157d9927d730038ef0f5520c6c3c5cc33222f155d9979238a5' '68685a10449c51fd8fa48fc8a4c399b36e22148a58d939e8f4b99a91c37c34e8' - '0ebd9e60fc5d2a3333814859369249f052aae2c8097b6f4a206a3e89e39c99b3' + 'e516c724bce5fa9ab9f0652f903c778609dd5b8a7682b169b881a8c0fcb41bbf' '38ac347a82f61525e762ba3dd129faf2eb5af03371599626bef7fc66e8bf8a32' ) install="${pkgname}.install" diff --git a/webthings-gateway.sh b/webthings-gateway.sh index ef6c895c5ba1..3f8818067ae6 100644 --- a/webthings-gateway.sh +++ b/webthings-gateway.sh @@ -11,6 +11,11 @@ if [ ! -d "/etc/webthings-gateway" ]; then fi cd /opt/webthings-gateway -su -c "node build/gateway.js" webthings +setpriv \ + --reuid=webthings \ + --regid=webthings \ + --init-groups \ + --inh-caps=-all \ + node build/gateway.js # vim:set ts=2 sw=2 et ft=sh: |