Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Bump version to 0.1.0 for MVP shipping (#280)
Browse files Browse the repository at this point in the history
* bump version to 0.1.0

Because:
* Version 0.1.0 for MVP release
* Update version of Go applications to 1.0

* lightningd: don't fail if rpc not available

Because:
* The start-post script for lightnind sets group permissions for the
  rpc socket .lightning/lightning-rpc
* If lightningd is still waiting for bitcoind to warm up, this socket
  may not be available yet and the service start fails.
* At the moment, these permissions are not really required, but will be
  if lightnind runs under its own user.

This commit:
* checks if socket exists and does not set permissions if it is missing

This issue keeps track of improved method to set permissions:
https://github.com/shiftdevices/bitbox-base-internal/issues/357
  • Loading branch information
Stadicus authored Nov 29, 2019
1 parent 20bf479 commit d2d75f0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion armbian/base/config/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.5
0.1.0
4 changes: 2 additions & 2 deletions armbian/base/scripts/systemd-lightningd-startpost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ BITCOIN_NETWORK=$(redis_get "bitcoind:network")
sleep 10

# make available lightningd socket to group "bitcoin"
if [[ "${BITCOIN_NETWORK}" == "mainnet" ]]; then
if [[ "${BITCOIN_NETWORK}" == "mainnet" ]] && [ -f /mnt/ssd/bitcoin/.lightning/lightning-rpc ]; then
chmod g+rwx /mnt/ssd/bitcoin/.lightning/lightning-rpc
elif [ -d /mnt/ssd/bitcoin/.lightning-testnet/lightning-rpc ]; then
elif [ -f /mnt/ssd/bitcoin/.lightning-testnet/lightning-rpc ]; then
chmod g+rwx /mnt/ssd/bitcoin/.lightning-testnet/lightning-rpc
else
echo "Failed to set permissions to lightning-rpc socket."
Expand Down
2 changes: 1 addition & 1 deletion tools/bbbconfgen/bbbconfgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func parseTemplate(redisConn redis.Conn, templateFile *os.File, outputFile *os.F

func main() {
var (
versionNum = 0.2
versionNum = 1.0
redisConn redis.Conn
err error
)
Expand Down
2 changes: 1 addition & 1 deletion tools/bbbfancontrol/bbbfancontrol.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func writeValueFile(filepath string, value string) (err error) {

func main() {

versionNum := 0.1
versionNum := 1.0

// parse command line arguments
tempFile := flag.String("temp", "/sys/class/thermal/thermal_zone0/temp", "filepath to temperature value file")
Expand Down
6 changes: 3 additions & 3 deletions tools/bbbsupervisor/bbbsupervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import (
const (
helpText = `
Watches systemd logs (via journalctl) and queries Prometheus to detect potential issues and take action.
Command-line arguments:
Command-line arguments:
--help
--redis-port redis port (default 6379)
--prometheus-port prometheus port (default 9090)
--version
`

versionNum = "0.2"
versionNum = "1.0"
)

// Command line arguments
Expand Down

0 comments on commit d2d75f0

Please sign in to comment.