Skip to content
Snippets Groups Projects
Commit d6ea575f authored by Elian Loraux's avatar Elian Loraux
Browse files

Protect MariaDB Pass variable

parent ace8a1e8
Branches
No related tags found
1 merge request!5Ajout de backup.sh
......@@ -2,6 +2,11 @@
echo "Backing up Keycloak DB and config"
if [ -z "$MARIADB_PASS" ]; then
echo "Error: the MARIADB_PASS variable is not set or is empty."
exit 1
fi
if [ ! -d "backups" ]; then
mkdir "backups"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment