summaryrefslogblamecommitdiff
path: root/user/mariadb/mariadb-server.pre-install
blob: de2bcd795727dd484c887561203ee6bbb75328b7 (plain) (tree)
1
2
3
4
5
6
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