Correctness for 57 line
This commit is contained in:
parent
469a2f9f52
commit
261d713f98
1 changed files with 2 additions and 6 deletions
|
|
@ -54,11 +54,7 @@ function checkOS () {
|
||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
if [[ "$ID" = "centos" ]]; then
|
if [[ "$ID" = "centos" ]]; then
|
||||||
OS="centos"
|
OS="centos"
|
||||||
<<<<<<< HEAD
|
if [[ ! $VERSION_ID ~= (7|8) ]]; then
|
||||||
if [[ ! $VERSION_ID =~ (7|8) ]]; then
|
|
||||||
=======
|
|
||||||
if [[ ! $VERSION_ID ~= "7|8" ]]; then
|
|
||||||
>>>>>>> e2e58b20b3e962f186ab7556b3a20ca559593724
|
|
||||||
echo "⚠️ Your version of CentOS is not supported."
|
echo "⚠️ Your version of CentOS is not supported."
|
||||||
echo ""
|
echo ""
|
||||||
echo "The script only support CentOS 7."
|
echo "The script only support CentOS 7."
|
||||||
|
|
@ -1146,7 +1142,7 @@ function removeOpenVPN () {
|
||||||
read -rp "Do you really want to remove OpenVPN? [y/n]: " -e -i n REMOVE
|
read -rp "Do you really want to remove OpenVPN? [y/n]: " -e -i n REMOVE
|
||||||
if [[ "$REMOVE" = 'y' ]]; then
|
if [[ "$REMOVE" = 'y' ]]; then
|
||||||
# Get OpenVPN port from the configuration
|
# Get OpenVPN port from the configuration
|
||||||
PORT=$(grep '^port ' /etc/openvpn/server.conf | cut -d " " -f 2)
|
PORT=$(grep '^port ' /etc/op envpn/server.conf | cut -d " " -f 2)
|
||||||
|
|
||||||
# Stop OpenVPN
|
# Stop OpenVPN
|
||||||
if [[ "$OS" =~ (fedora|arch|centos) ]]; then
|
if [[ "$OS" =~ (fedora|arch|centos) ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue