pull/402/head^2
mazano 2022-12-20 17:43:58 +02:00 zatwierdzone przez GitHub
rodzic 904607b0a5
commit e7fd886c38
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 16 dodań i 12 usunięć

Wyświetl plik

@ -16,4 +16,4 @@ LANGS="en_US.UTF-8,id_ID.UTF-8"
POSTGRES_MAJOR_VERSION=15
POSTGIS_MAJOR_VERSION=3
POSTGIS_MINOR_RELEASE=3
BUILD_TIMESCALE=true
BUILD_TIMESCALE=false

Wyświetl plik

@ -4,15 +4,19 @@ if [[ ! -f .env ]]; then
echo "Default build arguments don't exists. Creating one from default value."
cp .example.env .env
fi
source .env
if [[ ${BUILD_TIMESCALE} =~ [Ff][Aa][Ll][Ss][Ee] ]];then
if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
docker-compose -f docker-compose.build.yml build postgis-prod
else
docker compose -f docker-compose.build.yml build postgis-prod
fi
if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
docker-compose -f docker-compose.build.yml build postgis-prod
else
docker compose -f docker-compose.build.yml build postgis-prod
fi
#if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
#docker-compose -f docker-compose.build-timescale.yml build postgis-prod
#else
#docker compose -f docker-compose.build-timescale.yml build postgis-prod
#fi
if [[ $(dpkg -l | grep "docker-compose") > /dev/null ]];then
docker-compose -f docker-compose.build-timescale.yml build postgis-prod
else
docker compose -f docker-compose.build-timescale.yml build postgis-prod
fi
fi

Wyświetl plik

@ -78,7 +78,7 @@ fi
function generate_random_string() {
STRING_LENGTH=$1
random_pass_string=$(openssl rand -base64 ${STRING_LENGTH})
random_pass_string=$(cat /dev/urandom | tr -dc '[:alnum:]' | head -c "${STRING_LENGTH}")
if [[ ! -f /scripts/.pass_${STRING_LENGTH}.txt ]]; then
echo ${random_pass_string} > /scripts/.pass_${STRING_LENGTH}.txt
fi