summaryrefslogtreecommitdiff
path: root/user/mariadb/mariadb-server.pre-install
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2019-07-03 15:49:03 +0000
committerDan Theisen <djt@hxx.in>2019-07-06 02:32:42 +0000
commitc50636433139f26543aad061d54c3708b2a4e22a (patch)
tree76ba19e8e61c6e6f3a7c482377c9072e0ddaf2b2 /user/mariadb/mariadb-server.pre-install
parent38a0fdf20fdbc5142113e969cceee302f48a585d (diff)
downloadpackages-c50636433139f26543aad061d54c3708b2a4e22a.tar.gz
packages-c50636433139f26543aad061d54c3708b2a4e22a.tar.bz2
packages-c50636433139f26543aad061d54c3708b2a4e22a.tar.xz
packages-c50636433139f26543aad061d54c3708b2a4e22a.zip
user/mariadb: new package
Diffstat (limited to 'user/mariadb/mariadb-server.pre-install')
-rw-r--r--user/mariadb/mariadb-server.pre-install7
1 files changed, 7 insertions, 0 deletions
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