chore (dev): check if URL has been set in dev/docker-entrypoint.sh
This commit is contained in:
parent
d139b0dd1f
commit
90a33b2371
1 changed files with 6 additions and 3 deletions
|
@ -23,9 +23,12 @@ if [ ! -f '/.firefish_env_initialized' ]; then
|
||||||
# Configuring a new server
|
# Configuring a new server
|
||||||
cd /firefish
|
cd /firefish
|
||||||
cp .config/devenv.yml .config/default.yml
|
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
|
if [ -n "${URL-}" ]; then
|
||||||
rm .config/defaut.yml.bak
|
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
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue