Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hwdsl2 committed Dec 19, 2018
1 parent ddaa0ee commit 03e587d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extras/vpnupgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ case "$SWAN_VER" in
DNS_SRVS=$(printf '%s' "$DNS_SRVS" | cut -d '"' -f 2 | cut -d "'" -f 2 | sed 's/,/ /g' | tr -s ' ')
DNS_SRV1=$(printf '%s' "$DNS_SRVS" | cut -d ' ' -f 1)
DNS_SRV2=$(printf '%s' "$DNS_SRVS" | cut -s -d ' ' -f 2)
[ -n "$DNS_SRV1" ] && dns_state=4
[ -n "$DNS_SRV1" ] && [ -n "$DNS_SRV2" ] && dns_state=3
[ -n "$DNS_SRV1" ] && [ -z "$DNS_SRV2" ] && dns_state=4
[ "$(grep -c "modecfgdns=" /etc/ipsec.conf)" -gt "1" ] && dns_state=6
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion extras/vpnupgrade_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ case "$SWAN_VER" in
DNS_SRVS=$(printf '%s' "$DNS_SRVS" | cut -d '"' -f 2 | cut -d "'" -f 2 | sed 's/,/ /g' | tr -s ' ')
DNS_SRV1=$(printf '%s' "$DNS_SRVS" | cut -d ' ' -f 1)
DNS_SRV2=$(printf '%s' "$DNS_SRVS" | cut -s -d ' ' -f 2)
[ -n "$DNS_SRV1" ] && dns_state=4
[ -n "$DNS_SRV1" ] && [ -n "$DNS_SRV2" ] && dns_state=3
[ -n "$DNS_SRV1" ] && [ -z "$DNS_SRV2" ] && dns_state=4
[ "$(grep -c "modecfgdns=" /etc/ipsec.conf)" -gt "1" ] && dns_state=6
;;
esac
Expand Down

0 comments on commit 03e587d

Please sign in to comment.