Files
nofx/scripts
tinkle-community a442ca420c fix(scripts): prevent JWT_SECRET from splitting across multiple lines (#756)
Fix setup_encryption.sh script that was causing JWT_SECRET values to wrap
onto multiple lines in .env file, leading to parse errors.
Root cause:
- openssl rand -base64 64 generates 88-character strings
- Using echo with / delimiter in sed caused conflicts with / in base64
- Long strings could wrap when written to .env
Changes:
- Changed sed delimiter from / to | to avoid conflicts with base64 chars
- Replaced echo with printf for consistent single-line output
- Added quotes around JWT_SECRET values for proper escaping
- Applied fix to all 3 locations that write JWT_SECRET
Co-authored-by: tinkle <tinkle@tinkle.community>
Co-authored-by: tinkle-community <tinklefund@gmail.com>
2025-11-08 18:06:14 +08:00
..
2025-11-08 02:03:09 +08:00
2025-11-08 02:03:09 +08:00
2025-11-08 02:03:09 +08:00
2025-11-01 18:25:44 -04:00
2025-11-01 18:25:44 -04:00