mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 12:06:59 +00:00
* added mongodb postgres java tests * fixed 1.7 and 12 Java on Ubuntu 20 * several improvments * removed update-environment function * add etc-environment import * removed sourcing invoke-tests Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
23 lines
796 B
Bash
23 lines
796 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: postgresql.sh
|
|
## Desc: Installs Postgresql
|
|
################################################################################
|
|
|
|
#Preparing repo for PostgreSQL 12.
|
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
|
echo "deb https://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
|
|
|
|
echo "Install PostgreSQL"
|
|
apt update
|
|
apt install postgresql postgresql-client
|
|
|
|
echo "Install libpq-dev"
|
|
apt-get install libpq-dev
|
|
|
|
# Disable postgresql.service
|
|
systemctl is-active --quiet postgresql.service && systemctl stop postgresql.service
|
|
systemctl disable postgresql.service
|
|
|
|
invoke_tests "Databases" "PostgreSQL"
|