modified: init.sh

This commit is contained in:
Matthew Fisher 2024-07-29 20:20:37 -05:00
parent 7759107ad7
commit 517fb0a1fd

13
init.sh
View File

@ -1,5 +1,16 @@
#!/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
echo '[#] Installing pre-requisites'
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
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
echo '[#] syslog forwarder setup'