shell/install/mariadb

17 lines
478 B
Plaintext
Raw Normal View History

2022-01-08 06:32:36 +00:00
#!/bin/bash
##makedesc: Install mariadb (latest) and php-mysql + phpMyAdmin (if php is installed)
2022-01-08 06:32:36 +00:00
echo
echo "==============================================="
echo "Installing mariadb (latest)..."
2022-01-08 06:32:36 +00:00
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