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

@@ -24,7 +24,7 @@ CONFIG_FILE_TEMPLATE="$WDIR/${CONFIG_FILE_NAME}.example"
#}
step_1_info() { echo "Prepare installation of $toolName"; }
step_1_alias() { ALIAS="install"; }
step_1_alias() { echo "install"; }
step_1() {
exe apt install raspberrypi-kernel-headers
endReturn -o $? "Installation of kernel headers failed"
@@ -40,7 +40,7 @@ Pin-Priority: 150"
step_2_info() { echo "Installing $toolName"; }
step_2() {
local aptOpt=""
if [ $QUIET -ne 0 ] ; then
if quiet ; then
aptOpt="-y"
fi
exe apt install $toolName $aptOpt
@@ -50,7 +50,7 @@ step_3_info() {
echo "Enable ipv4 forwarding to allow local access via VPN"
echoinfo "(may be skipped)"
}
step_3_alias() { ALIAS="ipv4"; }
step_3_alias() { echo "ipv4"; }
step_3() {
exe perl -pi -e 's/#{1,}?net.ipv4.ip_forward ?= ?(0|1)/net.ipv4.ip_forward = 1/g' /etc/sysctl.conf
}
@@ -61,19 +61,19 @@ step_4() {
}
step_10_info() { echo "Start default configuration $toolDefaultConf"; }
step_10_alias() { ALIAS="start"; }
step_10_alias() { echo "start"; }
step_10() {
exe wg-quick up wg0
}
step_12_info() { echo "Stop default configuration $toolDefaultConf"; }
step_12_alias() { ALIAS="stop"; }
step_12_alias() { echo "stop"; }
step_12() {
exe wg-quick down wg0
}
step_14_info() { echo "Enable default configuration $defaultConfLoc"; }
step_14_alias() { ALIAS="enable"; }
step_14_alias() { echo "enable"; }
step_14() {
if [ ! -r "$defaultConfLoc" ] ; then
endReturn -o 1 "Default configuration \"$defaultConfLoc\" not found"
@@ -89,5 +89,5 @@ step_20() {
}
VERSION_SEQREV=11
readonly sqr_minVersion=16
. /usr/local/bin/sequencer.sh