From 5fe5f04835634aca493bebdce6087a6ff397909e Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Mon, 25 May 2020 13:40:04 -0500 Subject: [PATCH] Update upgrade scripts - Ref: 71d67ae --- extras/vpnupgrade.sh | 6 +++--- extras/vpnupgrade_centos.sh | 22 ++++++++++------------ 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/extras/vpnupgrade.sh b/extras/vpnupgrade.sh index ba6b0a9..63136cf 100644 --- a/extras/vpnupgrade.sh +++ b/extras/vpnupgrade.sh @@ -285,11 +285,11 @@ service ipsec restart cat </dev/null | grep -qF "$SWAN_VER"; then fi # Restore SELinux contexts -restorecon /etc/ipsec.d/*db 2>/dev/null -restorecon /usr/local/sbin -Rv 2>/dev/null -restorecon /usr/local/libexec/ipsec -Rv 2>/dev/null +restorecon /etc/ipsec.d/*db >/dev/null 2>&1 +restorecon /usr/local/sbin -Rv >/dev/null 2>&1 +restorecon /usr/local/libexec/ipsec -Rv >/dev/null 2>&1 # Update ipsec.conf IKE_NEW=" ike=aes256-sha2,aes128-sha2,aes256-sha1,aes128-sha1,aes256-sha2;modp1024,aes128-sha1;modp1024" @@ -290,11 +288,11 @@ service ipsec restart cat <