From 2356787f316f1327e9a8b081daadbbc3ffc4d11f Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sat, 8 Jan 2022 14:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B0=20mariadb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/800-mariadb.sh | 14 ++++++++++++++ install/800-mysql.sh | 8 -------- 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100755 install/800-mariadb.sh delete mode 100755 install/800-mysql.sh 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!"