Add the flags for SpamVerify, other fixes
This commit is contained in:
1 parent
6295715466
commit
04b34854d2
2 files changed
+8
-12
No files matched your search
+7
-11
@@ -134,7 +134,7 @@ ask_config() {
|
||||
echo "$result"
|
||||
return 0
|
||||
else
|
||||
echo "❌ Must be 'true' or 'false'"
|
||||
echo "❌ Must be 'true' or 'false'" >&2
|
||||
fi
|
||||
;;
|
||||
number)
|
||||
@@ -142,7 +142,7 @@ ask_config() {
|
||||
echo "$result"
|
||||
return 0
|
||||
else
|
||||
echo "❌ Must be a valid number"
|
||||
echo "❌ Must be a valid number" >&2
|
||||
fi
|
||||
;;
|
||||
url)
|
||||
@@ -150,7 +150,7 @@ ask_config() {
|
||||
echo "$result"
|
||||
return 0
|
||||
else
|
||||
echo "❌ Must be a valid URL starting with http:// or https://"
|
||||
echo "❌ Must be a valid URL starting with http:// or https://" >&2
|
||||
fi
|
||||
;;
|
||||
cron)
|
||||
@@ -158,7 +158,7 @@ ask_config() {
|
||||
echo "$result"
|
||||
return 0
|
||||
else
|
||||
echo "❌ Invalid cron format. Expected: 'minute hour day month weekday'"
|
||||
echo "❌ Invalid cron format. Expected: 'minute hour day month weekday'" >&2
|
||||
fi
|
||||
;;
|
||||
static_dynamic)
|
||||
@@ -166,7 +166,7 @@ ask_config() {
|
||||
echo "$result"
|
||||
return 0
|
||||
else
|
||||
echo "❌ Must be 'static' or 'dynamic'"
|
||||
echo "❌ Must be 'static' or 'dynamic'" >&2
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
@@ -384,7 +384,7 @@ while true; do
|
||||
if awk "BEGIN {exit !($cooldown_hours >= 0.25)}"; then
|
||||
break
|
||||
else
|
||||
echo "❌ Minimum cooldown is 0.25 hours (15 minutes)"
|
||||
echo "❌ Minimum cooldown is 0.25 hours (15 minutes)" >&2
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -502,11 +502,7 @@ echo -e " After editing the configuration file, restart the process: pm2 resta
|
||||
|
||||
echo -e "\n====================================== Summary ======================================"
|
||||
echo "🖥️ Server ID : ${server_id//\'/}"
|
||||
if [[ ${#api_token} -gt 16 ]]; then
|
||||
echo "🔑 API Key : ${api_token:0:8}...${api_token: -4}"
|
||||
else
|
||||
echo "🔑 API Key : ${api_token:0:4}...${api_token: -4}"
|
||||
fi
|
||||
echo "🔑 API Key : $api_token"
|
||||
echo "📂 UFW Log File : $ufw_log_path"
|
||||
echo "💾 Cache File : $cache_file"
|
||||
echo "🌐 IP Assignment : $ip_assignment"
|
||||
|
||||
Reference in new issue
Block a user