Fix upgrade bug
- Fixed an issue where the upgrade script could break the IKEv2 section of /etc/ipsec.conf for users who manually added IKEv2
This commit is contained in:
parent
dae0c03356
commit
f15db57ea5
@ -275,7 +275,7 @@ fi
|
|||||||
|
|
||||||
if [ "$SWAN_VER" = "3.29" ] || [ "$SWAN_VER" = "3.31" ]; then
|
if [ "$SWAN_VER" = "3.29" ] || [ "$SWAN_VER" = "3.31" ]; then
|
||||||
sed -i "/ikev2=never/d" /etc/ipsec.conf
|
sed -i "/ikev2=never/d" /etc/ipsec.conf
|
||||||
sed -i "/dpdaction=clear/a \ ikev2=never" /etc/ipsec.conf
|
sed -i "/conn shared/a \ ikev2=never" /etc/ipsec.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart IPsec service
|
# Restart IPsec service
|
||||||
|
@ -280,7 +280,7 @@ fi
|
|||||||
|
|
||||||
if [ "$SWAN_VER" = "3.29" ] || [ "$SWAN_VER" = "3.31" ]; then
|
if [ "$SWAN_VER" = "3.29" ] || [ "$SWAN_VER" = "3.31" ]; then
|
||||||
sed -i "/ikev2=never/d" /etc/ipsec.conf
|
sed -i "/ikev2=never/d" /etc/ipsec.conf
|
||||||
sed -i "/dpdaction=clear/a \ ikev2=never" /etc/ipsec.conf
|
sed -i "/conn shared/a \ ikev2=never" /etc/ipsec.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart IPsec service
|
# Restart IPsec service
|
||||||
|
Loading…
Reference in New Issue
Block a user