Don't change BASEURL again on container restart
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4fd4fb01b4
commit
234ce066cf
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
CURRENT_BASE="/"
|
[ -s /chbase-done ] && CURRENT_BASE=$(cat /chbase-done) || CURRENT_BASE="/"
|
||||||
[ -n "${BASEURL}" ] || BASEURL="/"
|
[ -n "${BASEURL}" ] || BASEURL="/"
|
||||||
|
|
||||||
run() {
|
run() {
|
||||||
@ -21,6 +21,9 @@ run() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "${CURRENT_BASE}" != "${BASEURL}"] && run "${BASEURL}" /srv/htdocs-frontend
|
[ "${CURRENT_BASE}" != "${BASEURL}"] && {
|
||||||
|
run "${BASEURL}" /srv/htdocs-frontend
|
||||||
|
echo "${BASEURL}" > /chbase-done
|
||||||
|
}
|
||||||
|
|
||||||
exec /srv/frontend $@
|
exec /srv/frontend $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user