From 5905847b1c30b3972c88e020305b9df731b6ebd7 Mon Sep 17 00:00:00 2001 From: Tom Wiesing Date: Tue, 7 Jul 2020 15:26:46 +0200 Subject: [PATCH] Add 'ls.sh' script --- README.md | 8 ++++++++ distillery/ls.sh | 12 ++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 distillery/ls.sh 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