From 086e282a33346f37c87fb9c317ca89778b9d5693 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 10 Apr 2026 13:34:19 +0200 Subject: [PATCH] Update install/bentopdf-install.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- install/bentopdf-install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install/bentopdf-install.sh b/install/bentopdf-install.sh index cb9dce043..fe8d073db 100644 --- a/install/bentopdf-install.sh +++ b/install/bentopdf-install.sh @@ -32,13 +32,11 @@ EOF msg_ok "Setup BentoPDF" msg_info "Creating Service" -if [[ ! -f /etc/ssl/private/bentopdf-selfsigned.key || ! -f /etc/ssl/certs/bentopdf-selfsigned.crt ]]; then - CERT_CN="$(hostname -I | awk '{print $1}')" - $STD openssl req -x509 -nodes -newkey rsa:2048 -days 3650 \ +CERT_CN="$(hostname -I | awk '{print $1}')" +$STD openssl req -x509 -nodes -newkey rsa:2048 -days 3650 \ -keyout /etc/ssl/private/bentopdf-selfsigned.key \ -out /etc/ssl/certs/bentopdf-selfsigned.crt \ -subj "/CN=${CERT_CN}" -fi cat <<'EOF' >/etc/nginx/sites-available/bentopdf server {