Корректировка pgsql

This commit is contained in:
Anthony Axenov 2022-01-08 14:34:20 +08:00
parent 2356787f31
commit c4f4452312
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

@ -1,7 +1,14 @@
#!/bin/bash #!/bin/bash
. "../src/01-common.sh" || exit 5 echo
title "Installing pgsql..." echo "==============================================="
echo "Installing postgresql..."
echo "==============================================="
echo
apti postgresql postgresql-contrib installed() {
command -v "$1" >/dev/null 2>&1
}
sudo apt install -y --autoremove postgresql postgresql-contrib
sudo service postgresql restart sudo service postgresql restart
installed php && apti php-pgsql installed php && sudo apt install -y --autoremove php-pgsql