mirror of
https://github.com/tj-actions/install-postgresql.git
synced 2024-12-20 01:18:18 +00:00
Updated the install location
This commit is contained in:
parent
30a49f1e9b
commit
e93d0bc2a5
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ if [[ "$(uname -s)" == "Linux" ]]; then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
||||||
# Install PostgreSQL
|
# Install PostgreSQL
|
||||||
sudo apt-get install -y "postgresql-$INPUT_POSTGRESQL_VERSION"
|
sudo apt-get apt-get -o Dir::Cache::Archives=/tmp 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 --no-progress
|
choco install "postgresql$INPUT_POSTGRESQL_VERSION" -y --no-progress
|
||||||
elif [[ "$(uname -s)" == "Darwin" ]]; then
|
elif [[ "$(uname -s)" == "Darwin" ]]; then
|
||||||
|
@ -48,7 +48,7 @@ fi
|
||||||
|
|
||||||
echo "Installed postgresql"
|
echo "Installed postgresql"
|
||||||
|
|
||||||
echo "Verifying installation..."
|
echo "Updating PATH..."
|
||||||
|
|
||||||
# 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue