Closed cerebrux closed 9 months ago
Workaround :
hello, thanks for your suggestion. We have fix it:
if [ -z \"$W9_URL\" ]; then
echo 'W9_URL is empty, not need to change, exiting...'
exit 0
fi
That mean if you don't modify W9_URL, it have have hardcoded
Describe the bug
The latest change 40a7880727fc91b4efbd20844c8ed18e35d4027c probably creates a hardcoded "Internal_IP" In Admin panel of wordpress under Site URL.
As a result I am not able to login using my domain name e.g. https://example.com/login. It redirects to
https://internet_ip/wp-login.php
Bug source
System Environment
VPS Ubuntu 22.04 in a lxc container
Application Version
latest docker compose from your
Bug reproduce
Steps to reproduce the behavior:
Once complete login. If successful check in the admin panel the General Settings --> Site URL --> has "https://Internal_URL" string
Check Logs
docker compose logs
shows thatwordpress-cli
runs before the actual wordpress installation is complete.Once Wordpress is complete it changes the homeurl and siteurl
Bug Screenshot
If I open a new browser and go to https://example.com/login it redirects
https://internet_ip/wp-login.php