aboutsummaryrefslogtreecommitdiffstats
path: root/main/mariadb/mariadb.pre-install
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-11-16 20:23:56 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-18 08:04:07 +0000
commitbce627835dabf7ec2b1eec947f24601a1a42a0e9 (patch)
tree9b29dc1891b37840f4810ae1c66576cc2b4188ad /main/mariadb/mariadb.pre-install
parent4f5540c218aeeb5ffce5c2b2823823685cc8ae75 (diff)
downloadaports-bce627835dabf7ec2b1eec947f24601a1a42a0e9.tar.bz2
aports-bce627835dabf7ec2b1eec947f24601a1a42a0e9.tar.xz
main/mariadb: create user in .pre-install script
Diffstat (limited to 'main/mariadb/mariadb.pre-install')
-rw-r--r--main/mariadb/mariadb.pre-install6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/mariadb/mariadb.pre-install b/main/mariadb/mariadb.pre-install
new file mode 100644
index 0000000000..2e6e668e7f
--- /dev/null
+++ b/main/mariadb/mariadb.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+addgroup -S mysql 2>/dev/null
+adduser -h /var/lib/mysql -s /sbin/nologin -G mysql -D mysql 2>/dev/null
+exit 0
+