From 22950aafe6a4a37da4ce2f4e3f74c037822b6d7a Mon Sep 17 00:00:00 2001 From: Deniz Erdogan Date: Tue, 3 Sep 2024 10:13:50 +0200 Subject: [PATCH] add some output to restore script --- k8s/jobs/singleWikiRestore.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/k8s/jobs/singleWikiRestore.yaml b/k8s/jobs/singleWikiRestore.yaml index 4d386613c..b197e9cc4 100644 --- a/k8s/jobs/singleWikiRestore.yaml +++ b/k8s/jobs/singleWikiRestore.yaml @@ -28,6 +28,7 @@ spec: - '-c' - | mysql --show-warnings --host sql-mariadb-primary.default.svc.cluster.local ${DATABASE_NAME} < /backup/${DATABASE_NAME}.sql + if [[ $? == 0 ]]; then echo "SQL import successful"; else echo "Error while importing SQL"; fi volumeMounts: - name: temporary-backup-pvc mountPath: "/backup/"