docker-piwik
docker-piwik copied to clipboard
Startup script fails to handle & character in password (and possibly other fields)
Configuring a container with a password that contains the & character fails.
If my password was foobarpass&word, then the config.ini.php contained:
password = foobarpassPIWIK_MYSQL_PASSWORDword
well yeah thats actually a bug - you'll have trouble with many unescaped special chars the bash tries to interpret - you could try to escape those chars with **
this bug exists because I'm using a Environment Variable which I process with sed
sed -i "s/PIWIK_MYSQL_PASSWORD/$PIWIK_MYSQL_PASSWORD/g" /piwik/config/config.ini.php
If somebody got a better/safer Idea to replace this, it would be possible to support special characters in the password.
Meanwhile be careful with the special chars in passwords