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

Nextcloud setup with env-file not working #1359

Closed
kitkittia opened this issue Jan 7, 2021 · 3 comments
Closed

Nextcloud setup with env-file not working #1359

kitkittia opened this issue Jan 7, 2021 · 3 comments
Labels

Comments

@kitkittia
Copy link
Contributor

I have this env file:

MYSQL_ROOT_PASSWORD=mysql_root_password
MYSQL_DATABASE=nextcloud
MYSQL_USER=nc_admin
MYSQL_PASSWORD=mysql_nc_password
MYSQL_ALLOW_EMPTY_PASSWORD=no
#MYSQL_HOST=127.0.0.1
NEXTCLOUD_ADMIN_USER=nc_admin
NEXTCLOUD_ADMIN_PASSWORD=nc_password

If I omit MYSQL_HOST nextcloud appears to ignore all the other MYSQL_* environment variables and assumes I chose a sqlite database. If I however enable M̀YSQL_HOST, nextcloud registers that I want a mysql database.

Comment #1201 (comment) mentions this explicitly.

Is this a bug, or is the documentation lacking?

@J0WI
Copy link
Contributor

J0WI commented Jan 7, 2021

This behavior is expected:

elif [ -n "${MYSQL_DATABASE+x}" ] && [ -n "${MYSQL_USER+x}" ] && [ -n "${MYSQL_PASSWORD+x}" ] && [ -n "${MYSQL_HOST+x}" ]; then

@kitkittia
Copy link
Contributor Author

Then this must be fixed in the README

@J0WI
Copy link
Contributor

J0WI commented Jan 14, 2021

Fixed in #1361

@J0WI J0WI closed this as completed Jan 14, 2021
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