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:
parent
3baac232ab
commit
80fdc14dde
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ if [[ "$(uname -s)" == "Linux" ]]; then
|
||||||
# Install PostgreSQL
|
# Install PostgreSQL
|
||||||
sudo apt-get install -y "postgresql-$INPUT_POSTGRESQL_VERSION"
|
sudo apt-get install -y "postgresql-$INPUT_POSTGRESQL_VERSION"
|
||||||
elif [[ "$(uname -s)" == "NT"* ]] || [[ "$(uname -s)" == "MINGW"* ]] || [[ "$(uname -s)" == *"MSYS"* ]]; then
|
elif [[ "$(uname -s)" == "NT"* ]] || [[ "$(uname -s)" == "MINGW"* ]] || [[ "$(uname -s)" == *"MSYS"* ]]; then
|
||||||
choco install "postgresql$INPUT_POSTGRESQL_VERSION" -y
|
choco install "postgresql$INPUT_POSTGRESQL_VERSION" -y --no-progress
|
||||||
elif [[ "$(uname -s)" == "Darwin" ]]; then
|
elif [[ "$(uname -s)" == "Darwin" ]]; then
|
||||||
brew update
|
brew update
|
||||||
brew install "postgresql@$INPUT_POSTGRESQL_VERSION"
|
brew install "postgresql@$INPUT_POSTGRESQL_VERSION"
|
||||||
|
@ -52,8 +52,8 @@ echo "Verifying installation..."
|
||||||
|
|
||||||
# Verify installation by running pg_dump directly
|
# Verify installation by running pg_dump directly
|
||||||
if [[ "$(uname -s)" == "NT"* ]] || [[ "$(uname -s)" == "MINGW"* ]] || [[ "$(uname -s)" == *"MSYS"* ]]; then
|
if [[ "$(uname -s)" == "NT"* ]] || [[ "$(uname -s)" == "MINGW"* ]] || [[ "$(uname -s)" == *"MSYS"* ]]; then
|
||||||
"/Program Files/PostgreSQL/$INPUT_POSTGRESQL_VERSION/bin/pg_dump" --version
|
"C:/Program Files/PostgreSQL/$INPUT_POSTGRESQL_VERSION/bin/pg_dump" --version
|
||||||
echo "/Program Files/PostgreSQL/$INPUT_POSTGRESQL_VERSION/bin" >> $GITHUB_PATH
|
echo "C:/Program Files/PostgreSQL/$INPUT_POSTGRESQL_VERSION/bin" >> $GITHUB_PATH
|
||||||
elif [[ "$(uname -s)" == "Darwin" ]]; then
|
elif [[ "$(uname -s)" == "Darwin" ]]; then
|
||||||
"/usr/local/opt/postgresql@${INPUT_POSTGRESQL_VERSION}/bin/pg_dump" --version
|
"/usr/local/opt/postgresql@${INPUT_POSTGRESQL_VERSION}/bin/pg_dump" --version
|
||||||
echo "/usr/local/opt/postgresql@${INPUT_POSTGRESQL_VERSION}/bin" >> $GITHUB_PATH
|
echo "/usr/local/opt/postgresql@${INPUT_POSTGRESQL_VERSION}/bin" >> $GITHUB_PATH
|
||||||
|
|
Loading…
Add table
Reference in a new issue