fix(sirius-press): stop writing dead build args into the installer's .env
install.sh was still sourcing tools/wordpress.lock and copying WP_VERSION, WP_URL and WP_SHA256 into the generated .env. Nothing reads them any more — core is vendored and baked into the image — and a config file full of settings that do nothing invites someone to edit one and wonder why it had no effect.
This commit is contained in:
parent
a65556726e
commit
05d77a0187
1 changed files with 3 additions and 5 deletions
|
|
@ -81,8 +81,9 @@ if [ -f .env ]; then
|
|||
say "keeping the existing .env"
|
||||
else
|
||||
say "writing .env with generated passwords"
|
||||
# shellcheck source=tools/wordpress.lock
|
||||
source "$DIR/tools/wordpress.lock"
|
||||
# No WordPress version or checksum here: core is vendored in the
|
||||
# repository and baked into the image, so there is nothing to pin at
|
||||
# deploy time.
|
||||
{
|
||||
echo "# Written by install.sh on $(date -u +%Y-%m-%dT%H:%M:%SZ)."
|
||||
echo "DB_NAME=wordpress"
|
||||
|
|
@ -93,9 +94,6 @@ else
|
|||
echo "HTTP_PORT=$PORT"
|
||||
echo "WP_DEBUG=false"
|
||||
echo "SIRIUS_PRESS_KEY=$(random)"
|
||||
echo "WP_VERSION=$WP_VERSION"
|
||||
echo "WP_URL=$WP_URL"
|
||||
echo "WP_SHA256=$WP_SHA256"
|
||||
} > .env
|
||||
chmod 600 .env
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue