mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
24 lines
640 B
Text
24 lines
640 B
Text
post_install(){
|
|
if hash systemd-sysusers &> /dev/null; then
|
|
systemd-sysusers mariadb.conf
|
|
fi
|
|
|
|
if hash systemd-tmpfiles &> /dev/null; then
|
|
systemd-tmpfiles --create mariadb.conf
|
|
fi
|
|
|
|
echo ":: You need to initialize the MariaDB data directory prior to starting"
|
|
echo " the service. This can be done with mysql_install_db command, e.g.:"
|
|
echo " mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql"
|
|
|
|
}
|
|
|
|
post_upgrade(){
|
|
if hash systemd-sysusers &> /dev/null; then
|
|
systemd-sysusers mariadb.conf
|
|
fi
|
|
|
|
if hash systemd-tmpfiles &> /dev/null; then
|
|
systemd-tmpfiles --create mariadb.conf
|
|
fi
|
|
}
|