modified: init.sh
This commit is contained in:
parent
7759107ad7
commit
517fb0a1fd
13
init.sh
13
init.sh
@ -1,5 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
#Run as normal user
|
||||||
|
|
||||||
|
|
||||||
|
#Wireguard config check
|
||||||
|
if [[ $(ls | grep 'wg0.conf') ]]; then
|
||||||
|
echo 'Wireguard config found continuing'
|
||||||
|
else
|
||||||
|
echo 'No Wireguard config found please place in home directory'
|
||||||
|
exit 78
|
||||||
|
fi
|
||||||
|
|
||||||
#Nginx Repo setup
|
#Nginx Repo setup
|
||||||
echo '[#] Installing pre-requisites'
|
echo '[#] Installing pre-requisites'
|
||||||
sudo apt install -y curl gnupg2 ca-certificates lsb-release debian-archive-keyring git > /dev/null
|
sudo apt install -y curl gnupg2 ca-certificates lsb-release debian-archive-keyring git > /dev/null
|
||||||
@ -16,7 +27,7 @@ curl -s https://install.crowdsec.net | sudo sh > /dev/null
|
|||||||
|
|
||||||
#Package install
|
#Package install
|
||||||
echo '[#] Installing packages'
|
echo '[#] Installing packages'
|
||||||
sudo apt install -y iptables nginx crowdsec crowdsec-firewall-bouncer-iptables wireguard avahi-daemon > /dev/null
|
sudo apt install -y iptables nginx crowdsec crowdsec-firewall-bouncer-iptables resolvconf wireguard avahi-daemon > /dev/null
|
||||||
|
|
||||||
#rsyslog setup
|
#rsyslog setup
|
||||||
echo '[#] syslog forwarder setup'
|
echo '[#] syslog forwarder setup'
|
||||||
|
Loading…
Reference in New Issue
Block a user