Skip to content
Snippets Groups Projects
Commit 5860725f authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Fix typo in docker-entrypoint.sh that prevented using a custom mysql...

[Misc] Fix typo in docker-entrypoint.sh that prevented using a custom mysql user name + Removed unnecessary env variable at runtime
parent c29db6c8
No related branches found
No related tags found
No related merge requests found
......@@ -73,11 +73,11 @@ services:
- db
ports:
- "8080:8080"
volumes:
- xwiki-data:/usr/local/xwiki
environment:
- MYSQL_USER=xwiki
- MYSQL_PASSWORD=xwiki
volumes:
- xwiki-data:/usr/local/xwiki
db:
image: "mysql:5.7"
volumes:
......
......@@ -27,11 +27,10 @@ services:
- db
ports:
- "8080:8080"
# The MYSQL_USER/MYSQL_PASSWORD/MYSQL_DATABASE variables are used in the hibernate.cfg.xml file.
# The MYSQL_USER/MYSQL_PASSWORD variables are used in the hibernate.cfg.xml file.
environment:
- MYSQL_USER=xwiki
- MYSQL_PASSWORD=xwiki
- MYSQL_DATABASE=xwiki
# Provide a name instead of an auto-generated id for the xwiki permanent directory configured in the Dockerfile,
# to make it simpler to identify in 'docker volume ls'.
volumes:
......
......@@ -47,7 +47,7 @@ function xwiki_set_properties() {
function configure() {
echo 'Configuring XWiki...'
sed -i "s/replacemysqluser/${MYSQL_USERNAME:-xwiki}/g" /usr/local/tomcat/webapps/ROOT/WEB-INF/hibernate.cfg.xml
sed -i "s/replacemysqluser/${MYSQL_USER:-xwiki}/g" /usr/local/tomcat/webapps/ROOT/WEB-INF/hibernate.cfg.xml
sed -i "s/replacemysqlpassword/${MYSQL_PASSWORD:-xwiki}/g" /usr/local/tomcat/webapps/ROOT/WEB-INF/hibernate.cfg.xml
echo ' Using filesystem-based attachments...'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.