Fix symbolic link

This commit is contained in:
Edi Septriyanto
2024-07-08 07:21:02 +07:00
parent cd252ab560
commit e07fc37f36

View File

@@ -133,13 +133,13 @@ function init_mariadb_install() {
run cp etc/systemd/mariadb.service /lib/systemd/system/
[[ ! -f /etc/systemd/system/multi-user.target.wants/mariadb.service && -f /lib/systemd/system/mariadb.service ]] && \
run ln -s /lib/systemd/system/mariadb.service /etc/systemd/system/multi-user.target.wants/mariadb.service
run ln -sf /lib/systemd/system/mariadb.service /etc/systemd/system/multi-user.target.wants/mariadb.service
[[ ! -f /etc/systemd/system/mysqld.service && -f /lib/systemd/system/mariadb.service ]] && \
run ln -s /lib/systemd/system/mariadb.service /etc/systemd/system/mysqld.service
run ln -sf /lib/systemd/system/mariadb.service /etc/systemd/system/mysqld.service
[[ ! -f /etc/systemd/system/mysql.service && -f /lib/systemd/system/mariadb.service ]] && \
run ln -s /lib/systemd/system/mariadb.service /etc/systemd/system/mysql.service
run ln -sf /lib/systemd/system/mariadb.service /etc/systemd/system/mysql.service
# Install default table.
if [[ -n $(command -v mysql_install_db) ]]; then