From ec6c88e5e921e8926b2d59c76068f619e61cc7d4 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 26 Oct 2021 23:00:26 +0200 Subject: [PATCH] Update and rename 30-keygen to 29-ssl_config --- .../root/etc/cont-init.d/{30-keygen => 29-ssl_config} | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) rename nextcloud/root/etc/cont-init.d/{30-keygen => 29-ssl_config} (64%) diff --git a/nextcloud/root/etc/cont-init.d/30-keygen b/nextcloud/root/etc/cont-init.d/29-ssl_config similarity index 64% rename from nextcloud/root/etc/cont-init.d/30-keygen rename to nextcloud/root/etc/cont-init.d/29-ssl_config index c72485261..3d8c1c4d9 100644 --- a/nextcloud/root/etc/cont-init.d/30-keygen +++ b/nextcloud/root/etc/cont-init.d/29-ssl_config @@ -20,14 +20,7 @@ if bashio::config.true 'use_own_certs'; then sed -i "$LINE d" /defaults/default bashio::log.info "... done" - + rm /etc/cont-init.d/30-keygen else bashio::log.info "No ssl certificates set. Auto generating ones." - SUBJECT="/C=US/ST=CA/L=Carlsbad/O=Linuxserver.io/OU=LSIO Server/CN=*" - if [[ -f /ssl/nextcloud/keys/cert.key && -f /ssl/nextcloud/keys/cert.crt ]]; then - bashio::log.info "using keys found in /ssl/nextcloud/keys" - else - bashio::log.info "generating self-signed keys in /ssl/nextcloud/keys, you can replace these with your own keys if required" - openssl req -new -x509 -days 3650 -nodes -out /ssl/nextcloud/keys/cert.crt -keyout /ssl/nextcloud/keys/cert.key -subj "$SUBJECT" - fi fi