diff --git a/README.md b/README.md index 4f75b6d..eadb4c7 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,14 @@ sudo bash /distillery/shell.sh SLUG This will open a shell in the provided WissKI instance. +## List all instances -- 'ls.sh' + +To list all instances, the following command can be used: + +```bash +sudo bash /distillery/ls.sh +``` + ## License This project and associated files in this repository are licensed as follows: diff --git a/distillery/ls.sh b/distillery/ls.sh new file mode 100644 index 0000000..e8c93a3 --- /dev/null +++ b/distillery/ls.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -e + +# read the lib/shared.sh and read the slug argument. +DISABLE_LOG=1 +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +cd "$DIR" +source "$DIR/lib/lib.sh" +DISABLE_LOG=0 + +# list all the existing instances +sql_bookkeep_list \ No newline at end of file