mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 22:23:13 +00:00
513cc24d1c
* Restart app when purging * Use log.Fatal to exit with status 1 * Quotes in entry.sh * Use JSON for request body * Handle errors for parseJsonBody * Better error printing in main * First attempt at testing nodesuper from Go * Cleaner build * Use ARCH to differentiate concurrent tests/builds * Use --rm to autoremove containers
14 lines
316 B
Bash
14 lines
316 B
Bash
#!/bin/bash
|
|
|
|
go install -a -v ./gosuper
|
|
RETURN_VALUE=$?
|
|
|
|
# For consistency, always keep the binary within a linux_$GOARCH folder
|
|
if [ $GOARCH == "amd64" ]; then
|
|
mkdir $GOPATH/bin/linux_$GOARCH || true
|
|
cp $GOPATH/bin/gosuper $GOPATH/bin/linux_$GOARCH/
|
|
fi
|
|
chown -R $USER_ID:$GROUP_ID $GOPATH/bin
|
|
|
|
exit $RETURN_VALUE
|