Skip to content

Commit

Permalink
Rage
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Oct 10, 2024
1 parent 147c0bd commit b34ef0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/deploy-hobby
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export SENTRY_DSN="${SENTRY_DSN:-'https://[email protected]/1'}"
POSTHOG_SECRET=$(head -c 28 /dev/urandom | sha224sum -b | head -c 56)
export POSTHOG_SECRET

ENCRYPTION_KEY=$(dd if=/dev/urandom bs=32 count=1 2>/dev/null | openssl base64)
ENCRYPTION_KEY=$(openssl rand -hex 16)
export ENCRYPTION_SALT_KEYS

# Talk to the user
Expand Down
2 changes: 1 addition & 1 deletion bin/upgrade-hobby
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fi
# we introduced ENCRYPTION_SALT_KEYS and so if there isn't one, need to add it
# check for it in the .env file
if ! grep -q "ENCRYPTION_SALT_KEYS" .env; then
ENCRYPTION_KEY=$(dd if=/dev/urandom bs=32 count=1 2>/dev/null | openssl base64)
ENCRYPTION_KEY=$(openssl rand -hex 16)
echo "ENCRYPTION_SALT_KEYS=$ENCRYPTION_KEY" >> .env
echo "Added missing ENCRYPTION_SALT_KEYS to .env file"
source .env
Expand Down

0 comments on commit b34ef0a

Please sign in to comment.