-
Notifications
You must be signed in to change notification settings - Fork 64
init script fixes #214
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
base: master
Are you sure you want to change the base?
init script fixes #214
Changes from 6 commits
65f9a20
e728ee5
b0353c8
5f0c21b
700d2e9
78591aa
5b7811a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,15 @@ | ||
| #!/bin/sh | ||
|
|
||
| if [[ ! -f /var/www/html/.env ]]; then | ||
| if [ ! -f /var/www/html/.env ]; then | ||
| echo "No .env file found in /var/www/html. Make sure to mount a .env file to store the configuration. You can use the koel:init command (see https://github.com/koel/docker#the-koelinit-command) for a guided setup." | ||
| echo "" | ||
| echo "See https://github.com/koel/koel/blob/master/.env.example for an example .env file." | ||
| exit 0 | ||
| fi | ||
|
Comment on lines
+3
to
7
|
||
|
|
||
| if [[ -z "${SKIP_INIT}" ]]; then | ||
| if [[ -z "${OPTIMIZE_CONFIG}" ]]; then | ||
| echo "Config not optimized. You can optimize the config with `OPTIMIZE_CONFIG`. Note that this will prevent config modifications from being applied until the container is restarted." | ||
| if [ -z "${SKIP_INIT}" ]; then | ||
| if [ -z "${OPTIMIZE_CONFIG}" ]; then | ||
| echo "Config not optimized. You can optimize the config with 'OPTIMIZE_CONFIG'. Note that this will prevent config modifications from being applied until the container is restarted." | ||
| else | ||
| echo "Optimizing config..." | ||
| # clear before caching, in case this is a container reboot and it was already cached from before | ||
|
|
@@ -22,4 +22,4 @@ if [[ -z "${SKIP_INIT}" ]]; then | |
| php artisan koel:init --no-assets --no-interaction | ||
| else | ||
| echo "Initialization skipped. koel might not work properly if it is misconfigured or if the database is out of date. This should not be used outside of debugging or manual initial setups!" | ||
| fi | ||
| fi | ||
Uh oh!
There was an error while loading. Please reload this page.