Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ramblurr opened this issue Apr 29, 2015 · 2 comments
Labels

Comments

@Ramblurr
Copy link

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

@MarvAmBass
Copy link
Owner

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 MarvAmBass added the bug label Apr 29, 2015
@MarvAmBass
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants