mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
listing scripts refactoring + new format
This commit is contained in:
parent
b7e9f4b5b0
commit
6e0ef668bb
60 changed files with 3695 additions and 1991 deletions
|
@ -65,7 +65,7 @@ for db in $(echo $DB_SYSTEM| tr ',' '\n'); do
|
|||
fi
|
||||
|
||||
# Checking PostgreSQL
|
||||
if [ "$db" = 'pgsql' ]; then
|
||||
if [ "$db" = 'pgsql' ] && [ ! -z "$(which psql)" ]; then
|
||||
echo "PostgreSQL $HOST status"
|
||||
export PGPASSWORD="$PASSWORD"
|
||||
psql -h $HOST -U $USER -c "SELECT * FROM pg_stat_activity"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue