0
0
Fork 0
mirror of https://github.com/tj-actions/install-postgresql.git synced 2024-12-20 01:18:18 +00:00

Update entrypoint.sh

This commit is contained in:
Tonye Jack 2023-09-07 20:56:00 -06:00 committed by GitHub
parent 356f17fc58
commit 1f3f5314e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,8 @@ echo "Validated postgresql version: $INPUT_POSTGRESQL_VERSION"
echo "Installing postgresql..." echo "Installing postgresql..."
echo "OS: $(uname -s)"
if [[ "$(uname -s)" == "Linux" ]]; then if [[ "$(uname -s)" == "Linux" ]]; then
# Create the file repository configuration: # 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' sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'