From 7de49f42975b8a6377188b8519566a3eba85bd4a Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Tue, 26 May 2020 17:40:55 +0200 Subject: [PATCH] Make sure mariadb could save persistant (#135) * Make sure mariadb could save persistant Fixes #134 * Trigger checks --- blueprints/mariadb/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blueprints/mariadb/install.sh b/blueprints/mariadb/install.sh index e94678b0..d7d52499 100755 --- a/blueprints/mariadb/install.sh +++ b/blueprints/mariadb/install.sh @@ -35,6 +35,8 @@ if [ "$(ls -A "/mnt/${global_dataset_config}/${1}/db")" ]; then fi # Mount database dataset and set zfs preferences +iocage exec "${1}" service mysql-server stop +iocage exec "${1}" rm -Rf /var/db/mysql createmount "${1}" "${global_dataset_config}"/"${1}"/db /var/db/mysql zfs set recordsize=16K "${global_dataset_config}"/"${1}"/db zfs set primarycache=metadata "${global_dataset_config}"/"${1}"/db