From 5b8dedd3be4d6e655ef1d581b5a9251a5d69de08 Mon Sep 17 00:00:00 2001 From: Lucky3028 Date: Sun, 22 Sep 2024 22:38:48 +0900 Subject: [PATCH] feat: create DB for LuckPerms in initdb.d --- .../templates/mariadb/mariadb.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml index b1371aa8d..2f6a98cc2 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml @@ -97,6 +97,17 @@ spec: volumeMounts: - mountPath: /docker-entrypoint-initdb.d name: sqldump-volume + - name: create-db-for-plugins + image: busybox:1.36.1 + imagePullPolicy: IfNotPresent + args: + - sh + - -c + - | + echo 'CREATE DATABASE IF NOT EXISTS luckperms;' > /docker-entrypoint-initdb.d/create-db.sql + volumeMounts: + - mountPath: /docker-entrypoint-initdb.d + name: sqldump-volume restartPolicy: Always volumes: - name: storage