mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
[Ubuntu] Remove apt sources for Postgresql, Mongodb, Heroku (#3091)
This commit is contained in:
committed by
GitHub
parent
1a3945d52c
commit
f29cc02bef
@@ -4,9 +4,11 @@
|
||||
## Desc: Installs Postgresql
|
||||
################################################################################
|
||||
|
||||
REPO_URL="https://apt.postgresql.org/pub/repos/apt/"
|
||||
|
||||
#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 "deb $REPO_URL `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
|
||||
|
||||
echo "Install PostgreSQL"
|
||||
apt update
|
||||
@@ -19,4 +21,8 @@ apt-get install libpq-dev
|
||||
systemctl is-active --quiet postgresql.service && systemctl stop postgresql.service
|
||||
systemctl disable postgresql.service
|
||||
|
||||
rm /etc/apt/sources.list.d/pgdg.list
|
||||
|
||||
echo "postgresql $REPO_URL" >> $HELPER_SCRIPTS/apt-sources.txt
|
||||
|
||||
invoke_tests "Databases" "PostgreSQL"
|
||||
|
||||
Reference in New Issue
Block a user