Adding step to list databases

This commit is contained in:
2020-10-12 22:13:31 +02:00
parent f5d672f609
commit 11f001ede0

View File

@@ -77,9 +77,16 @@ step_6() {
exe su ${toolUser} -c "psql -c \"SELECT pg_size_pretty( pg_database_size('$dbname') );\""
}
step_8_info() { echo "List all tables of postgres [DATABASE]"; }
step_8_alias() { ALIAS="listtables"; }
step_8_info() { echo "List available databases"; }
step_8_alias() { ALIAS="listdb"; }
step_8() {
exe cd ~postgres
exe su ${toolUser} -c "psql -c '\l'"
}
step_10_info() { echo "List all tables of postgres [DATABASE]"; }
step_10_alias() { ALIAS="listtables"; }
step_10() {
shift
local dbname=$1
if [ -z $dbname ]; then