docker-piwik icon indicating copy to clipboard operation
docker-piwik copied to clipboard

Startup script fails to handle & character in password (and possibly other fields)

Open Ramblurr opened this issue 10 years ago • 2 comments

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

Ramblurr avatar Apr 29 '15 13:04 Ramblurr

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 **

MarvAmBass avatar Apr 29 '15 13:04 MarvAmBass

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

MarvAmBass avatar Jun 11 '15 13:06 MarvAmBass