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).
This commit is contained in:
CanbiZ (MickLesk) authored and GitHub committed 2026-12-02 10:57:53 +01:00
1 parent bdaeb11818
commit 4e338af9e9
1 file changed
+1 -1
+1 -1
View File
@@ -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 \