Make sure mariadb could save persistant (#135)

* Make sure mariadb could save persistant
Fixes #134

* Trigger checks
This commit is contained in:
Kjeld Schouten-Lebbing 2020-05-26 17:40:55 +02:00 committed by GitHub
parent e8acdbc16f
commit 7de49f4297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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