Skip to content

Commit 7053ca5

Browse files
committed
service fix
1 parent 78657ac commit 7053ca5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ else
2121
echo "Go is already installed: $(go version)"
2222
fi
2323

24-
export PATH=$(command -v go)
25-
echo "Go binary located at: $PATH"
24+
export GO_PATH=$(command -v go)
25+
echo "Go binary located at: $GO_PATH"
2626

2727
PROJECT_ROOT=$(pwd)
2828

@@ -109,7 +109,7 @@ BindsTo=storage-engine.service
109109
[Service]
110110
Type=simple
111111
WorkingDirectory=$GO_PROJECT_PATH
112-
ExecStart=/usr/local/go/bin/go run node_coordinator.go
112+
ExecStart=$GO_PATH run node_coordinator.go
113113
Restart=on-failure
114114
RestartSec=5
115115
User=runner

0 commit comments

Comments
 (0)