From faead282439b6ac588d1bc491c40dcb5741d8098 Mon Sep 17 00:00:00 2001 From: q3aql Date: Sun, 12 Mar 2023 18:32:32 +0100 Subject: [PATCH] Cancel configuration if certificate is invalid (ks-upv/upa/upf/upr) --- src/ks-upa | 2 ++ src/ks-upf | 2 ++ src/ks-upr | 2 ++ src/ks-upv | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/ks-upa b/src/ks-upa index 9696af1..2c98cfb 100755 --- a/src/ks-upa +++ b/src/ks-upa @@ -677,6 +677,8 @@ function createConfig() { echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist" + echo "+ The configuration is cancelled" + exit fi else raw_password_enter=${PASS} diff --git a/src/ks-upf b/src/ks-upf index 2632876..45e1bb4 100755 --- a/src/ks-upf +++ b/src/ks-upf @@ -704,6 +704,8 @@ function createConfig() { echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist" + echo "+ The configuration is cancelled" + exit fi else raw_password_enter=${PASS} diff --git a/src/ks-upr b/src/ks-upr index 6c0d431..274c638 100755 --- a/src/ks-upr +++ b/src/ks-upr @@ -563,6 +563,8 @@ function createConfig() { echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist" + echo "+ The configuration is cancelled" + exit fi else raw_password_enter=${PASS} diff --git a/src/ks-upv b/src/ks-upv index a8d123a..dda7193 100755 --- a/src/ks-upv +++ b/src/ks-upv @@ -677,6 +677,8 @@ function createConfig() { echo "* PEM file copied to ${dirConfig}/connect.pem" else echo "+ File ${pem_path} does not exist" + echo "+ The configuration is cancelled" + exit fi else raw_password_enter=${PASS}