Корректировка mariadb
This commit is contained in:
parent
2039df23f6
commit
2356787f31
14
install/800-mariadb.sh
Executable file
14
install/800-mariadb.sh
Executable file
@ -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
|
@ -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!"
|
|
Loading…
Reference in New Issue
Block a user