From b3cad7fcee827237ccafc983a1004694da6be069 Mon Sep 17 00:00:00 2001
From: Elian Loraux <elian.loraux@tetras-libre.fr>
Date: Tue, 1 Apr 2025 09:08:45 +0200
Subject: [PATCH] fix make directory

---
 backup.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/backup.sh b/backup.sh
index 7af43bd..23d213d 100644
--- a/backup.sh
+++ b/backup.sh
@@ -2,6 +2,11 @@
 
 echo "Backing up Keycloak DB and config"
 
+if [ ! -d "backups" ]; then
+  echo "backups does exist. Create this."
+  mkdir "backups"
+fi
+
 out="backups/keycloak_$(date +%Y%m%d_%H%M).tar.gz"
 tar -czf $out keycloak_db
 
-- 
GitLab