Run app as user instead of root

This commit is contained in:
Chigozirim Igweamaka 2024-06-09 20:37:35 +01:00
parent 8537fc1e19
commit 41b720d2a3

View file

@ -9,7 +9,7 @@ start_server() {
go build -tags netgo -ldflags '-s -w' -o app
sudo setcap CAP_NET_BIND_SERVICE+ep app
nohup sudo ./app > backend.log 2>&1 &
nohup ./app > backend.log 2>&1 &
}
start_client() {