Przeglądaj źródła

update docs

tags/v1.4.28
Jonathan Cobb 3 lat temu
rodzic
commit
56b9ae985a
4 zmienionych plików z 26 dodań i 4 usunięć
  1. +6
    -0
      bin/rdelkeys
  2. +7
    -0
      bin/rkeys
  3. +9
    -0
      bin/rmembers
  4. +4
    -4
      bin/ubuntu_connect_bubble

+ 6
- 0
bin/rdelkeys Wyświetl plik

@@ -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)"


+ 7
- 0
bin/rkeys Wyświetl plik

@@ -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)"


+ 9
- 0
bin/rmembers Wyświetl plik

@@ -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


+ 4
- 4
bin/ubuntu_connect_bubble Wyświetl plik

@@ -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}


Ładowanie…
Anuluj
Zapisz