mirror of
https://github.com/koel/koel.git
synced 2026-04-25 00:36:03 +03:00
[GH-ISSUE #2197] /usr/local/bin/koel-init: line 12: OPTIMIZE_CONFIG: command not found #1117
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#1117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Anduin2017 on GitHub (Jan 15, 2026).
Original GitHub issue: https://github.com/koel/koel/issues/2197
The error is caused by the use of backticks (`) inside a double-quoted string in the
koel-initscript, which Bash interprets as a command execution.Since
OPTIMIZE_CONFIGis not a command, it crashes.Issue Template (English)
Title:
Bug: Syntax error in
koel-initscript causes "OPTIMIZE_CONFIG: command not found"Description:
I encountered an error when starting the Koel container. The
koel-initscript fails at line 12 because it attempts to executeOPTIMIZE_CONFIGas a command due to unescaped backticks inside a double-quoted string.Steps to Reproduce:
koeldocker image withOPTIMIZE_CONFIGunset (default behavior).Observed Log Output:
Root Cause:
In
koel-initline 12:The backticks around
OPTIMIZE_CONFIGcause Bash to try and execute it as a command. Since the variable is empty (which is why we are in thisifblock) or simply not a command, it throws an error.Suggested Fix:
Escape the backticks or use single quotes for that part of the string.
Environment:
phanan/koel:latest(orkoel/koel:latest)@Goumboul commented on GitHub (Jan 17, 2026):
Thanks for the detailed investigation!
I'll submit a PR to fix the shell quoting issue in
koel-init.