Thanks for providing us with that information.
You are indeed right and this is a mistake in our documentation, I will forward this to the appropriate team so it can be fixed. Thanks for mentioning it.
Please note you are not providing the absolute (
/opt/bitnami/apps/wordpress/bnconfig) or relative (
./bnconfig) path to the
bnconfig file. The actual command would be:
sudo /opt/bitnami/apps/wordpress/bnconfig --machine_hostname NEW_DOMAIN
Then disable it from running automatically with:
sudo mv /opt/bitnami/apps/wordpress/bnconfig /opt/bitnami/apps/wordpress/bnconfig.disabled
Could you check if this works for you?