my-env/install/810-pgsql.sh

15 lines
373 B
Bash
Raw Normal View History

#!/bin/bash
2022-01-08 06:34:20 +00:00
echo
echo "==============================================="
echo "Installing postgresql..."
echo "==============================================="
echo
2022-01-08 06:34:20 +00:00
installed() {
command -v "$1" >/dev/null 2>&1
}
sudo apt install -y --autoremove postgresql postgresql-contrib
sudo service postgresql restart
2022-01-08 06:34:20 +00:00
installed php && sudo apt install -y --autoremove php-pgsql