aports/main/mariadb/mariadb.pre-install
Jakub Jirutka ee6121a7a0 main/mariadb: don't create /var/lib/mysql by adduser, change its perms to 750
adduser automatically copies /etc/skel/* to the create home directory
and also creates it with mode 755. That's why it should be created
by the package, not pre-install script.
2023-09-27 13:02:28 +00:00

6 lines
137 B
Bash

#!/bin/sh
addgroup -S mysql 2>/dev/null
adduser -S -D -H -h /var/lib/mysql -s /sbin/nologin -G mysql -g mysql mysql 2>/dev/null
exit 0