diff --git a/scripts/install_mariadb.sh b/scripts/install_mariadb.sh index 243e1fd..d39d0e2 100755 --- a/scripts/install_mariadb.sh +++ b/scripts/install_mariadb.sh @@ -350,7 +350,7 @@ echo "[MariaDB (MySQL drop-in replacement) Installation]" # Start running things from a call at the end so if this script is executed # after a partial download it doesn't do anything. -if [[ -n $(command -v mariadb) && -n $(command -v mysqld) && "${FORCE_INSTALL}" != true ]]; then +if [[ -n $(command -v mariadb) && -n $(command -v mariadbd) && "${FORCE_INSTALL}" != true ]]; then info "MariaDB server already exists, installation skipped." else init_mariadb_install "$@" diff --git a/scripts/remove_mariadb.sh b/scripts/remove_mariadb.sh index 9bee149..f201fc8 100755 --- a/scripts/remove_mariadb.sh +++ b/scripts/remove_mariadb.sh @@ -104,7 +104,7 @@ function init_mariadb_removal() { echo "Uninstalling MariaDB server..." -if [[ -n $(command -v mariadb) || -n $(command -v mysqld) ]]; then +if [[ -n $(command -v mariadb) || -n $(command -v mariadbd) ]]; then if [[ "${AUTO_REMOVE}" == true ]]; then REMOVE_MARIADB="y" else