home · contact · privacy
In public server postinstall, set htwtxt binary bind capability.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 10 Feb 2016 00:27:31 +0000 (01:27 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 10 Feb 2016 00:27:31 +0000 (01:27 +0100)
jessie_postinstall.sh

index 02e4e23f3acd43562a366dbb9d6f993ac1a03af6..939d6a4cef54a30ec78b76776180e27596faad2f 100755 (executable)
@@ -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