From 159de85445d8383b9ebdd1544fadb742a375b855 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Mon, 26 Dec 2022 15:51:56 +0100 Subject: [PATCH] Remove deprecated file --- mounts/gotify/config/entrypoint.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 mounts/gotify/config/entrypoint.sh diff --git a/mounts/gotify/config/entrypoint.sh b/mounts/gotify/config/entrypoint.sh deleted file mode 100755 index 784aeca..0000000 --- a/mounts/gotify/config/entrypoint.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# usage: file_env VAR [DEFAULT] -# ie: file_env 'XYZ_DB_PASSWORD' 'example' -# (will allow for "$XYZ_DB_PASSWORD_FILE" to fill in the value of -# "$XYZ_DB_PASSWORD" from a file, especially for Docker's secrets feature) -file_env() { - local var="$1" - local fileVar="${var}_FILE" - local def="${2:-}" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - mysql_error "Both $var and $fileVar are set (but are exclusive)" - fi - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - export "$var"="$val" - unset "$fileVar" -} - -cd /app - -file_env 'GOTIFY_DEFAULTUSER_PASS' - -./gotify-app "$@"