From c50636433139f26543aad061d54c3708b2a4e22a Mon Sep 17 00:00:00 2001 From: Dan Theisen Date: Wed, 3 Jul 2019 15:49:03 +0000 Subject: user/mariadb: new package --- user/mariadb/mariadb-server.pre-install | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 user/mariadb/mariadb-server.pre-install (limited to 'user/mariadb/mariadb-server.pre-install') diff --git a/user/mariadb/mariadb-server.pre-install b/user/mariadb/mariadb-server.pre-install new file mode 100644 index 000000000..de2bcd795 --- /dev/null +++ b/user/mariadb/mariadb-server.pre-install @@ -0,0 +1,7 @@ +#!/bin/sh + +groupadd -g 60 -r mysql +useradd -M -N -r -u 60 -g 60 -c "MariaDB Database User" -d /var/lib/mysql -s /sbin/nologin mysql + +mkdir /var/lib/mysql +chown mysql:mysql /var/lib/mysql -- cgit v1.2.3-70-g09d2