This commit is contained in:
Shish 2019-11-23 12:09:18 +00:00
parent 5ae8d02366
commit bd1897ef9f

View file

@ -30,9 +30,10 @@ jobs:
if [[ "${{ matrix.database }}" == "pgsql" ]]; then if [[ "${{ matrix.database }}" == "pgsql" ]]; then
sudo apt-get install -y postgresql postgresql-client ; sudo apt-get install -y postgresql postgresql-client ;
psql --version ; psql --version ;
psql -c "SELECT set_config('log_statement', 'all', false);" -U postgres ; sudo -u postgres psql -c "SELECT set_config('log_statement', 'all', false);" -U postgres ;
psql -c "CREATE DATABASE shimmie;" -U postgres ; sudo -u postgres psql -c "CREATE USER shimmie WITH PASSWORD 'shimmie';" -U postgres ;
echo '<?php define("DATABASE_DSN", "pgsql:user=postgres;password=;host=;dbname=shimmie");' > data/config/auto_install.conf.php ; sudo -u postgres psql -c "CREATE DATABASE shimmie WITH OWNER shimmie;" -U postgres ;
echo '<?php define("DATABASE_DSN", "pgsql:user=shimmie;password=shimmie;host=;dbname=shimmie");' > data/config/auto_install.conf.php ;
fi fi
if [[ "${{ matrix.database }}" == "mysql" ]]; then if [[ "${{ matrix.database }}" == "mysql" ]]; then
mysql --version ; mysql --version ;