refactoring changes from sequpgrade (endReturn, ...) and some modernizations
This commit is contained in:
@@ -47,7 +47,7 @@ step_10() {
|
||||
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]*$'
|
||||
local dnsUrl="46.182.19.48" #digitalcourage.de/support/zensurfreier-dns-server
|
||||
local dnsFallbackUrl="194.150.168.168" #dns.as250.net; Berlin/Frankfurt
|
||||
|
||||
|
||||
local lLevelSave=${LOG_LEVEL:?}
|
||||
local lTimeSave=${LOG_TIME:-}
|
||||
local retval=0
|
||||
@@ -74,7 +74,7 @@ step_10() {
|
||||
warning "Couldn't aquire public IP for ${sc_turnDomain}. Giving up."
|
||||
retval=1
|
||||
|
||||
else
|
||||
else
|
||||
local confIp=`cat "$toolConf" | grep "^external-ip" | cut -d'=' -f2`
|
||||
|
||||
if [ "$pubIp" != "$confIp" ]; then
|
||||
@@ -105,7 +105,7 @@ step_12() {
|
||||
|
||||
info "Setup $ipCronLoc"
|
||||
addConf -s "$ipCron" "$ipCronLoc"
|
||||
}
|
||||
}
|
||||
|
||||
step_14_info() { echo "Setup ufw rules to allow upnp, optionally from a sepcific SOURCE_IP"; }
|
||||
step_14_options() { echo "[SOURCE_IP]"; }
|
||||
|
Reference in New Issue
Block a user