add setpcap and commented pre tag

This commit is contained in:
AJ ONeal 2018-05-24 02:50:17 -06:00
parent 6ac65001bf
commit d8e3434053
1 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
#<pre><code>
# This is a 3 step process # This is a 3 step process
# 1. First we need to figure out whether to use wget or curl for fetching remote files # 1. First we need to figure out whether to use wget or curl for fetching remote files
@ -126,6 +127,15 @@ echo "Creating link to 'greenlock' in /usr/local/bin"
echo "sudo ln -sf $GREENLOCK_PATH/bin/greenlock /usr/local/bin/greenlock" echo "sudo ln -sf $GREENLOCK_PATH/bin/greenlock /usr/local/bin/greenlock"
sudo ln -sf $GREENLOCK_PATH/bin/greenlock /usr/local/bin/greenlock sudo ln -sf $GREENLOCK_PATH/bin/greenlock /usr/local/bin/greenlock
set +e
if type -p setcap >/dev/null 2>&1; then
echo ""
echo "Setting permissions to allow Greenlock to run on port 80"
echo "sudo setcap cap_net_bind_service=+ep $GREENLOCK_PATH/bin/node"
sudo setcap cap_net_bind_service=+ep $GREENLOCK_PATH/bin/node
fi
set -e
echo "" echo ""
echo "" echo ""
echo "Installed successfully. Try it out:" echo "Installed successfully. Try it out:"