diff --git a/install/800-mariadb.sh b/install/800-mariadb.sh new file mode 100755 index 0000000..bf3724a --- /dev/null +++ b/install/800-mariadb.sh @@ -0,0 +1,14 @@ +#!/bin/bash +echo +echo "===============================================" +echo "Installing mariadb..." +echo "===============================================" +echo + +installed() { + command -v "$1" >/dev/null 2>&1 +} + +sudo apt install -y --autoremove mariadb-server mariadb-client +sudo mysql_secure_installation +installed "php" && sudo apt install -y --autoremove php-mysql phpmyadmin diff --git a/install/800-mysql.sh b/install/800-mysql.sh deleted file mode 100755 index 4551e55..0000000 --- a/install/800-mysql.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -. "../src/01-common.sh" || exit 5 -title "Installing mariadb..." - -apti mariadb-server mariadb-client -sudo mysql_secure_installation -installed "php" && apti php-mysql phpmyadmin -installed "mysql" && success "mariadb installed!"