18 lines
355 B
Bash
18 lines
355 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
|
||
|
apt update
|
||
|
apt install -y apt-transport-https lsb-release ca-certificates wget curl
|
||
|
|
||
|
stat "mariadb_repo_setup" || wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup -O "mariadb_repo_setup"
|
||
|
|
||
|
chmod +x mariadb_repo_setup
|
||
|
|
||
|
|
||
|
./mariadb_repo_setup
|
||
|
|
||
|
apt install -y mariadb-server
|
||
|
|
||
|
systemctl start mariadb
|
||
|
systemctl enable mariadb
|