From 4e338af9e91df56dfb12bb48eff030eb85a37f33 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 2 Dec 2026 10:57:53 +0100 Subject: [PATCH] Sure: set SECRET_KEY_BASE whatever the example holds (#19258) Sure 2026.11.30 ships .env.example with an empty SECRET_KEY_BASE instead of secret-value, so the substitution matched nothing, Rails had no key and db:prepare stopped the service from starting. Every install since the release failed (6 of 6). --- install/sure-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/sure-install.sh b/install/sure-install.sh index 88845c25c..38c819dcd 100644 --- a/install/sure-install.sh +++ b/install/sure-install.sh @@ -44,7 +44,7 @@ msg_info "Configuring Sure" KEY="$(openssl rand -hex 64)" mkdir -p /etc/sure mv /opt/sure/.env.example /etc/sure/.env -sed -i -e "/^SECRET_KEY_BASE=/s/secret-value/${KEY}/" \ +sed -i -e "s/^SECRET_KEY_BASE=.*/SECRET_KEY_BASE=${KEY}/" \ -e 's/_KEY_BASE=.*$/&\n\nRAILS_FORCE_SSL=false \ \ # Change to true when using a reverse proxy \