home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a92e9b0
)
In public server postinstall, set htwtxt binary bind capability.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 10 Feb 2016 00:27:31 +0000
(
01:27
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 10 Feb 2016 00:27:31 +0000
(
01:27
+0100)
jessie_postinstall.sh
patch
|
blob
|
history
diff --git
a/jessie_postinstall.sh
b/jessie_postinstall.sh
index 02e4e23f3acd43562a366dbb9d6f993ac1a03af6..939d6a4cef54a30ec78b76776180e27596faad2f 100755
(executable)
--- 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