From: Christian Heller Date: Wed, 10 Feb 2016 00:27:31 +0000 (+0100) Subject: In public server postinstall, set htwtxt binary bind capability. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D?a=commitdiff_plain;h=61a1a6d85811be02a7ba703bc59648dd99569c32;p=config In public server postinstall, set htwtxt binary bind capability. --- 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