diff options
author | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-28 16:54:06 +0300 |
---|---|---|
committer | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-28 16:54:06 +0300 |
commit | 99f4285e8ebc63128c5ef313459eb4194037ec29 (patch) | |
tree | 2274f261376fb34d1f0c7aa44d07b6fbfb43d818 | |
parent | 77a2d0cdf936bbf2b13515b578dc5241ffee1bc5 (diff) |
run-parts.sh: Prevent mariadb to start with /data-ro/* as db dir
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
-rwxr-xr-x | build/docker/debian-ncp/run-parts.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/docker/debian-ncp/run-parts.sh b/build/docker/debian-ncp/run-parts.sh index 6ae2c4e0..0099a5a1 100755 --- a/build/docker/debian-ncp/run-parts.sh +++ b/build/docker/debian-ncp/run-parts.sh @@ -8,6 +8,8 @@ cleanup() exit } +sed -i 's|/data-ro|/data|' "/etc/mysql/mariadb.conf.d/90-ncp.cnf" || true + trap cleanup SIGTERM # if an empty volume is mounted to /data, pre-populate it |