From 7b692f1502bd76d633e85483394ba2fa5d081dbf Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 12 Feb 2024 15:39:32 +0530 Subject: [PATCH] chore: add update.sh script Signed-off-by: Pranav C --- docker-compose/setup-script/noco.sh | 37 ++++++++++++++++++----------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/docker-compose/setup-script/noco.sh b/docker-compose/setup-script/noco.sh index 422ea0026d..58b90b8b08 100644 --- a/docker-compose/setup-script/noco.sh +++ b/docker-compose/setup-script/noco.sh @@ -233,7 +233,7 @@ services: labels: - "com.centurylinklabs.watchtower.enable=true" db: - image: postgres:latest + image: postgres:16.1 env_file: docker.env volumes: - ./postgres:/var/lib/postgresql/data @@ -250,7 +250,7 @@ services: - ./nginx:/etc/nginx/conf.d EOF -if [ "$SSL_ENABLED" = 'y' ]; then +if [ "$SSL_ENABLED" = 'y' ] || [ "$SSL_ENABLED" = 'Y' ]; then cat <> docker-compose.yml - webroot:/var/www/certbot - ./letsencrypt:/etc/letsencrypt @@ -266,7 +266,7 @@ cat <> docker-compose.yml restart: unless-stopped EOF -if [ "$SSL_ENABLED" = 'y' ]; then +if [ "$SSL_ENABLED" = 'y' ] || [ "$SSL_ENABLED" = 'Y' ]; then cat <> docker-compose.yml certbot: image: certbot/certbot @@ -292,7 +292,7 @@ cat <> docker-compose.yml EOF fi -if [ "$SSL_ENABLED" = 'y' ]; then +if [ "$SSL_ENABLED" = 'y' ] || [ "$SSL_ENABLED" = 'Y' ]; then cat <> docker-compose.yml volumes: letsencrypt-lib: @@ -317,7 +317,7 @@ server { listen 80; EOF -if [ "$SSL_ENABLED" = 'y' ]; then +if [ "$SSL_ENABLED" = 'y' ] || [ "$SSL_ENABLED" = 'Y' ]; then cat >> ./nginx/default.conf <> ./nginx/default.conf <> ./nginx/default.conf <> ./nginx/default.conf < ./update.sh <