Add MySQL bash installation script
This commit is contained in:
parent
d2142cb15f
commit
61cdfb971c
@ -6,3 +6,21 @@
|
|||||||
sudo su -c "bash <(wget -qO- https://git.myspace.nu/MySpace/Docs/raw/branch/master/BashScripts/install-apache.sh)"
|
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)"
|
||||||
|
```
|
||||||
|
|
||||||
|
15
BashScripts/install-mysql.sh
Normal file
15
BashScripts/install-mysql.sh
Normal 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'
|
Loading…
x
Reference in New Issue
Block a user