Skip to content

Generate HASHIDS_SALT for existing installs - #5701

Open
jondycz wants to merge 2 commits into
pterodactyl:1.0-developfrom
jondycz:patch-1
Open

Generate HASHIDS_SALT for existing installs#5701
jondycz wants to merge 2 commits into
pterodactyl:1.0-developfrom
jondycz:patch-1

Conversation

@jondycz

@jondycz jondycz commented Aug 11, 2026

Copy link
Copy Markdown

Simply moves the code for HASHIDS_SALT outside of the else block guarded by clause checking for existence of .env - this breaks generation of HASHIDS_SALT for existing installs lacking the env variable causing error 500 on the user dashboard in "Database" tab.

Additionally checks for existence of HASHIDS_SALT in /app/var/.env in order to not inflate the file size by redefining the variable on every restart.

fixes #5700

@danny6167

Copy link
Copy Markdown
Member

This looks like it would append an additional HASHIDS_SALT= line to the .env file every time the container starts, unless you declare the HASHIDS_SALT in the containers environment.

@jondycz

jondycz commented Aug 11, 2026

Copy link
Copy Markdown
Author

This looks like it would append an additional HASHIDS_SALT= line to the .env file every time the container starts, unless you declare the HASHIDS_SALT in the containers environment.

Just noticed that. Will update the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generation of HASHIDS_SALT does not work for existing installs

2 participants