diff --git a/bin/rdelkeys b/bin/rdelkeys index ce16cff0..d737c6ac 100755 --- a/bin/rdelkeys +++ b/bin/rdelkeys @@ -2,6 +2,12 @@ # # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/ # +# Delete keys from redis. +# +# Usage: rdelkeys keytext +# +# keytext : any key that contains this text will be deleted +# KEY_MATCH="${1:?no key match}" for k in $(echo 'keys *'"""${KEY_MATCH}"""'*' | redis-cli ) ; do echo "del ${k} => $(echo "del ${k}" | redis-cli)" diff --git a/bin/rkeys b/bin/rkeys index 2ea06699..a9ce4295 100755 --- a/bin/rkeys +++ b/bin/rkeys @@ -2,6 +2,13 @@ # # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/ # +# Dump data from redis for keys matching a pattern +# +# Usage: rkeys keytext +# +# keytext : any key that contains this text will be dumped +# the dump text that is printed is "key => dump(value)" +# KEY_MATCH="${1}" for k in $(echo 'keys *'"""${KEY_MATCH}"""'*' | redis-cli) ; do echo "$k => $(echo "dump $k" | redis-cli | strings)" diff --git a/bin/rmembers b/bin/rmembers index 57d4109f..94f5331a 100755 --- a/bin/rmembers +++ b/bin/rmembers @@ -2,6 +2,15 @@ # # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/ # +# Dump set members from redis for keys matching a pattern +# +# Usage: rmembers keytext +# +# keytext : any key that contains this text will be dumped +# the dump text that is printed is "key => smembers(key)" +# +# If the value referred to by the key is not a set, an error message will be printed. +# KEY_MATCH="${1}" SEP="${2:- }" for k in $(echo 'keys *'"""${KEY_MATCH}"""'*' | redis-cli) ; do diff --git a/bin/ubuntu_connect_bubble b/bin/ubuntu_connect_bubble index 72246fa3..251ea17e 100755 --- a/bin/ubuntu_connect_bubble +++ b/bin/ubuntu_connect_bubble @@ -9,7 +9,7 @@ # # ubuntu_connect_bubble [hostname] # -# hostname : bubble to connect this Linux system to +# hostname : bubble to connect this Ubuntu system to # If not specified, an env var will be used (see below) # If neither BUBBLE_HOST (hostname) or BUBBLE_API (URL) are specified, # then you'll be asked to enter the Bubble hostname @@ -322,9 +322,9 @@ echo "Starting WireGuard VPN ..." sudo wg-quick up wg0 || die "Error starting WireGuard" echo " -============================================================== -======= Linux device successfully connected to Bubble! ======= -============================================================== +=============================================================== +======= Ubuntu device successfully connected to Bubble! ======= +=============================================================== Device UUID : ${DEVICE_UUID} Device Name : ${DEVICE_NAME} Bubble Host : ${BUBBLE_HOST}