Used sequpgrade.sh to upgrade existing seqs

This commit is contained in:
2022-05-29 20:58:23 +02:00
parent 10ee4198f0
commit 6214493c18
57 changed files with 802 additions and 806 deletions

View File

@@ -18,10 +18,10 @@ CONFIG_FILE_TEMPLATE="$WDIR/${CONFIG_FILE_NAME}.example"
#}
step_1_info() { echo "Install $toolName and allow ssh access"; }
step_1_alias() { ALIAS="install"; }
step_1_alias() { echo "install"; }
step_1() {
local aptOpt=
if [ $QUIET -ne 0 ];then
if quiet;then
aptOpt="-y"
fi
exe apt install $toolDeps $aptOpt
@@ -34,7 +34,7 @@ step_2() {
}
step_20_info() { echo "Enable mail server essentials"; }
step_20_alias() { ALIAS="mailserver"; }
step_20_alias() { echo "mailserver"; }
step_20() {
exe ufw allow "Postfix"
exe ufw allow "Postfix SMTPS"
@@ -45,11 +45,11 @@ step_20() {
}
step_22_info() { echoinfoArgs "[IP]"; echo "Deny multicast from gateway"; }
step_22_alias() { ALIAS="multicast"; }
step_22_alias() { echo "multicast"; }
step_22() {
shift
if [ -z $1 ] ; then
echoerr " [E] No [IP} specified"
error -e "No [IP} specified"
return 1
fi
@@ -64,14 +64,14 @@ step_24_info() {
echoinfo " 139 : Cifs version 1.0"
echoinfo " 445 : Cifs version 2.0+"
}
step_24_alias() { ALIAS="cifs"; }
step_24_alias() { echo "cifs"; }
step_24() {
shift
local destIp=$1
local ipregex='^[0-2]*[0-9]{1,2}\.[0-2]*[0-9]{1,2}\.[0-2]*[0-9]{1,2}\.[0-2]*[0-9]{1,2}\/*[0-9]*$'
endCheckEmpty destIp "No IP provided"
if [[ ! $1 =~ $ipregex ]]; then
echoseq " [E] No valid IP provided"
error "No valid IP provided"
return 1
fi
local destPort=445
@@ -80,7 +80,7 @@ step_24() {
destPort=$2;;
"");; # Set default
*)
echoerr " [E] Invalid port."
error -e "Invalid port."
return 1;;
esac
@@ -88,7 +88,7 @@ step_24() {
}
step_26_info() { echo "Basic secure VPN setup"; }
step_26_alias() { ALIAS="vpn"; }
step_26_alias() { echo "vpn"; }
step_26() {
exe ufw --force reset
exe ufw allow in on eth0 to any port 22 comment "ssh"
@@ -107,5 +107,5 @@ step_26() {
exe ufw status verbose
}
VERSION_SEQREV=14
readonly sqr_minVersion=16
. /usr/local/bin/sequencer.sh