home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In public server postinstall, set htwtxt binary bind capability.
[config]
/
jessie_postinstall.sh
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'
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
su - plom -c 'mkdir ~/htwtxt'
fi