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

Commit 149780d

Browse files
committed
add: Base state and description codes to Redis
This adds a Redis string for the Base stateCode and a Redis sorted set for the descriptionCode.
1 parent fc573e6 commit 149780d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

armbian/base/config/redis/factorysettings.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ SET base:hostname bitbox-base
1313
SET base:update:allow-unsigned 0
1414
SET base:updating 0
1515
SET base:setup 0
16+
ZADD base:descriptionCode 0 0
17+
SET base:stateCode 0
1618

1719
SET middleware:passwordSetup 0
1820
SET middleware:datadir /data/bbbmiddleware

middleware/src/redis/keys.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ const (
2020
BaseSetupDone BaseRedisKey = "base:setup"
2121
BaseSSHDPasswordLogin BaseRedisKey = "base:sshd:passwordlogin"
2222
BitcoindIDB BaseRedisKey = "bitcoind:ibd"
23+
BaseStateCode BaseRedisKey = "base:stateCode"
24+
BaseDescriptionCode BaseRedisKey = "base:descriptionCode"
2325
)

0 commit comments

Comments
 (0)