mirror of
https://github.com/tj-actions/pg-dump.git
synced 2024-12-20 01:18:49 +00:00
Update entrypoint.sh
This commit is contained in:
parent
b71b2581cd
commit
a3b4512d8a
1 changed files with 9 additions and 0 deletions
|
@ -34,7 +34,16 @@ if [[ -n "$INPUT_POSTGRESQL_VERSION" ]]; then
|
|||
echo "Installing postgresql..."
|
||||
|
||||
if [[ "$(uname -s)" == "Linux" ]]; then
|
||||
# Create the file repository configuration:
|
||||
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
|
||||
|
||||
# Import the repository signing key:
|
||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
||||
|
||||
# Update the package lists:
|
||||
sudo apt-get update
|
||||
|
||||
# Install PostgreSQL
|
||||
sudo apt-get install -y "postgresql-$INPUT_POSTGRESQL_VERSION"
|
||||
elif [[ "$(uname -s)" == "NT"* ]]; then
|
||||
choco install postgresql --version="$INPUT_POSTGRESQL_VERSION" -y
|
||||
|
|
Loading…
Add table
Reference in a new issue