From 61a1a6d85811be02a7ba703bc59648dd99569c32 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 10 Feb 2016 01:27:31 +0100 Subject: [PATCH] In public server postinstall, set htwtxt binary bind capability. --- jessie_postinstall.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh index 02e4e23..939d6a4 100755 --- a/jessie_postinstall.sh +++ b/jessie_postinstall.sh @@ -221,6 +221,8 @@ if [ "$1" = "server" ]; then su - plom -c 'git clone '\ 'https://github.com/plomlompom/htwtxt $GOPATH/src/htwtxt' su - plom -c 'go get htwtxt' + path=`su - plom -c 'echo $GOPATH/bin/htwtxt'` + setcap 'cap_net_bind_service=+ep' $path su - plom -c 'mkdir ~/htwtxt' fi -- 2.30.2