More stuff

This commit is contained in:
2025-02-13 15:49:53 +01:00
parent 63165795ca
commit 2286ee380b
4 changed files with 62 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
#!/bin/sh
mariadb --user=dolibarr_user --password=dolipass < /app/scripts/db_schemas/dolibarr.sql #&& echo "Dolibarr user and DB created." || echo "Unable to create database."; exit 1

View File

@@ -0,0 +1,4 @@
CREATE USER 'dolibarr'@'localhost' IDENTIFIED BY 'dolipass';
CREATE DATABASE IF NOT EXISTS 'dolibarr';
GRANT ALL PRIVILEGES TO dolibarr.* TO 'dolibarr'@'localhost';
FLUSH PRIVILEGES;