From e07fc37f360e85271d0d2f18d0f9554d8f6bbebb Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Mon, 8 Jul 2024 07:21:02 +0700 Subject: [PATCH] Fix symbolic link --- scripts/install_mariadb.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install_mariadb.sh b/scripts/install_mariadb.sh index d39d0e2..eb9c20a 100755 --- a/scripts/install_mariadb.sh +++ b/scripts/install_mariadb.sh @@ -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