use sudo for ln to /usr/local

This commit is contained in:
AJ ONeal 2018-05-24 02:43:48 -06:00
parent 4c6332d4a1
commit 6ac65001bf
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ $my_node $GREENLOCK_PATH/bin/greenlock.js
EOF EOF
chmod a+x $GREENLOCK_PATH/bin/greenlock chmod a+x $GREENLOCK_PATH/bin/greenlock
echo "Creating link to 'greenlock' in /usr/local/bin" echo "Creating link to 'greenlock' in /usr/local/bin"
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
echo "" echo ""
echo "" echo ""