From 5437cb79ddb7698e0e31aa6be40ed7bbd82325a3 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 12 May 2022 09:07:51 +0200 Subject: [PATCH] Delete 98-ssl.sh --- photoprism/rootfs/etc/cont-init.d/98-ssl.sh | 28 --------------------- 1 file changed, 28 deletions(-) delete mode 100644 photoprism/rootfs/etc/cont-init.d/98-ssl.sh diff --git a/photoprism/rootfs/etc/cont-init.d/98-ssl.sh b/photoprism/rootfs/etc/cont-init.d/98-ssl.sh deleted file mode 100644 index b8e7e9572..000000000 --- a/photoprism/rootfs/etc/cont-init.d/98-ssl.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bashio -# shellcheck shell=bash - -########### -# SET SSL # -########### - -if bashio::config.true 'use_own_certs'; then - - bashio::log.info "Using referenced ssl certificates..." - CERTFILE=$(bashio::config 'certfile') - KEYFILE=$(bashio::config 'keyfile') - - #Check if files exist - echo "... checking if referenced certificates exist" - [ ! -f /ssl/"$CERTFILE" ] && bashio::log.fatal "... use_own_certs is true but certificate /ssl/$CERTFILE not found" && bashio::exit.nok - [ ! -f /ssl/"$KEYFILE" ] && bashio::log.fatal "... use_own_certs is true but certificate /ssl/$KEYFILE not found" && bashio::exit.nok - - #Use existing certificates - if [ -f /ssl/"$CERTFILE" ] && [ -f /ssl/"$KEYFILE" ]; then - echo "... setting referenced certificates" - rm /opt/photoprism/certs/cert.conf - rm /opt/photoprism/certs/cert.key - cp /ssl/"$CERTFILE" /opt/photoprism/certs/cert.conf - cp /ssl/"$KEYFILE" /opt/photoprism/certs/cert.key - fi - -fi