This commit is contained in:
fro
2025-10-28 12:49:28 -05:00
parent fbfe090d2c
commit d5d272d997

View File

@@ -21,7 +21,7 @@ cd /tmp
latest_version=$(curl -s https://api.github.com/repos/PostgREST/postgrest/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")') latest_version=$(curl -s https://api.github.com/repos/PostgREST/postgrest/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
# ask for user input # ask for user input
echo 'install postgrest {$latest_version}? [y/n]' echo 'install postgrest ${latest_version}? [y/n]'
read -n1 user_input read -n1 user_input
if [[ ${user_input} == "y" ]]; then if [[ ${user_input} == "y" ]]; then
@@ -57,8 +57,8 @@ then
cp config /etc/postgrest/ cp config /etc/postgrest/
echo "*********************************************************************" echo "***********************************************************************"
echo "* please, populate '/etc/postgrest/config' with proper login data ! *" echo "* ! please, populate '/etc/postgrest/config' with proper login data ! *"
echo "*********************************************************************" echo "***********************************************************************"
fi fi