Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .package/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ if ! get_env_var "DOMAIN"; then
done
fi

# Add domain to /etc/hosts
domain="$(. ./.env 2>/dev/null; printf '%s' "$DOMAIN")"
host="127.0.0.1 ${domain}"
if ! grep -qFx "$host" /etc/hosts 2>/dev/null; then
printf '%s\n' "$host" | sudo tee -a /etc/hosts >/dev/null
fi

# SECRET_KEY
if ! get_env_var "SECRET_KEY"; then
secret_key=$(openssl rand -hex 32)
Expand Down
2 changes: 1 addition & 1 deletion interface
Loading