chore (dev): check if URL has been set in dev/docker-entrypoint.sh

This commit is contained in:
naskya 2024-03-04 00:59:00 +09:00
parent d139b0dd1f
commit 90a33b2371
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -23,9 +23,12 @@ if [ ! -f '/.firefish_env_initialized' ]; then
# Configuring a new server
cd /firefish
cp .config/devenv.yml .config/default.yml
URL="$(echo "${URL}" | sed 's#/#\\/#g')"
sed -i'.bak' "s/http:\/\/localhost:3000/${URL}/g" .config/default.yml
rm .config/defaut.yml.bak
if [ -n "${URL-}" ]; then
URL="$(echo "${URL}" | sed 's#/#\\/#g')"
sed -i'.bak' "s/http:\/\/localhost:3000/${URL}/g" .config/default.yml
rm .config/defaut.yml.bak
fi
fi