Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-08 11:32:37 -05:00
parent 892b4cc2a8
commit 1f00dfb03e
2 changed files with 7 additions and 4 deletions

View File

@ -10,18 +10,18 @@ log:
@journalctl -f -xeu gowebd.service @journalctl -f -xeu gowebd.service
enable: enable:
su -c "systemctl enable gowebd.service" systemctl enable gowebd.service
restart: restart:
su -c "systemctl stop gowebd.service" systemctl stop gowebd.service
su -c "systemctl start gowebd.service" systemctl start gowebd.service
run: run:
git pull git pull
echo "build it!" echo "build it!"
GO111MODULE=off go build -v -x GO111MODULE=off go build -v -x
./go.wit.com ./go.wit.com
# su -c "setcap 'cap_net_bind_service=+ep' go.wit.com" # setcap 'cap_net_bind_service=+ep' go.wit.com # allow the binary to open ports below 1024
goimports: goimports:
goimports -w *.go goimports -w *.go

View File

@ -3,3 +3,6 @@ set -e
cd /etc/gowebd/ cd /etc/gowebd/
ln -s /usr/share/gowebd/go.wit.com . ln -s /usr/share/gowebd/go.wit.com .
# allow the binary to open ports below 1024
setcap 'cap_net_bind_service=+ep' /usr/bin/go.wit.com