Add 'ls.sh' script

This commit is contained in:
Tom Wiesing 2020-07-07 15:26:46 +02:00
parent ee0d114b08
commit 5905847b1c
No known key found for this signature in database
GPG key ID: DC1F29F2BC78AB15
2 changed files with 20 additions and 0 deletions

View file

@ -176,6 +176,14 @@ sudo bash /distillery/shell.sh SLUG
This will open a shell in the provided WissKI instance. 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 ## License
This project and associated files in this repository are licensed as follows: This project and associated files in this repository are licensed as follows:

12
distillery/ls.sh Normal file
View file

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