chore: remove stale validate_ssl_mode() and ssl_mode hint from common.sh
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -173,10 +173,6 @@ validate_password() {
|
||||
[[ ${#1} -ge 8 ]]
|
||||
}
|
||||
|
||||
validate_ssl_mode() {
|
||||
[[ "$1" == "letsencrypt" ]] || [[ "$1" == "existing" ]]
|
||||
}
|
||||
|
||||
validate_tls_mode() {
|
||||
[[ "$1" == "cloudflare" ]] || [[ "$1" == "existing" ]]
|
||||
}
|
||||
@@ -278,7 +274,6 @@ _validator_hint() {
|
||||
positive_integer) echo "must be a positive integer (>= 1)" ;;
|
||||
nonempty) echo "cannot be empty" ;;
|
||||
password) echo "must be at least 8 characters" ;;
|
||||
ssl_mode) echo "must be letsencrypt or existing" ;;
|
||||
tls_mode) echo "must be cloudflare or existing" ;;
|
||||
db_type) echo "must be sqlite3, mysql, postgres, or mssql" ;;
|
||||
optional) echo "any value or empty" ;;
|
||||
|
||||
Reference in New Issue
Block a user