From 517fb0a1fd498b71ac73ad283f4e9215d005ccea Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Mon, 29 Jul 2024 20:20:37 -0500 Subject: [PATCH] modified: init.sh --- init.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/init.sh b/init.sh index f1df448..f05f98c 100644 --- a/init.sh +++ b/init.sh @@ -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'