From 0bbc67dd8bbd957f7c1401ac17db5e72a623ca8b Mon Sep 17 00:00:00 2001 From: decentral1se Date: Thu, 6 May 2021 15:25:44 +0200 Subject: [PATCH] Return to bash mode (was there all along apparently) --- entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9d4c102..06eccd6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/env sh +#!/bin/bash set -e @@ -25,7 +25,10 @@ file_env() { } file_env "PEERTUBE_DB_PASSWORD" -file_env "PEERTUBE_SMTP_PASSWORD" + +if [ -z "$PEERTUBE_SMTP_ENABLED" ]; then + file_env "PEERTUBE_SMTP_PASSWORD" +fi # upstream entrypoint # https://github.com/Chocobozzz/PeerTube/blob/66f77f63437c6774acbd72584a9839a7636ea167/support/docker/production/entrypoint.sh