Add MySQL bash installation script

This commit is contained in:
Johan 2022-12-19 07:30:49 +01:00
parent d2142cb15f
commit 61cdfb971c
2 changed files with 33 additions and 0 deletions

View File

@ -6,3 +6,21 @@
sudo su -c "bash <(wget -qO- https://git.myspace.nu/MySpace/Docs/raw/branch/master/BashScripts/install-apache.sh)"
```
## Install MySQL
```bash
sudo su -c "bash <(wget -qO- https://git.myspace.nu/MySpace/Docs/raw/branch/master/BashScripts/install-mysql.sh)"
```
## Install Bind
```bash
sudo su -c "bash <(wget -qO- https://git.myspace.nu/MySpace/Docs/raw/branch/master/BashScripts/install-bind.sh)"
```
## Install Samba Active Directory Domain Controller
```bash
sudo su -c "bash <(wget -qO- https://git.myspace.nu/MySpace/Docs/raw/branch/master/BashScripts/install-dc.sh)"
```

View File

@ -0,0 +1,15 @@
# Install using: sudo su -c "bash <(wget -qO- /url/to/install-bind.sh)"
REALUSER=$(logname)
apt update 2>>install.log
if systemctl status mysql.service | grep -q 'Unit mysql.service could not be found'; then
echo "Installing MySQL..."
apt apt install mysql-server -y 2>>install.log &&
systemctl start mysql.service 2>>install.log
fi
systemctl status mysql.service
echo 'Installation complete'