We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebc53f6 commit b67632dCopy full SHA for b67632d
bin/v-change-sys-ip-status
@@ -27,18 +27,13 @@ check_args '2' "$#" 'IP IP_STATUS'
27
is_format_valid 'ip' 'ip_status'
28
is_ip_valid "$ip"
29
if [ "$ip_status" = "$(get_ip_value '$STATUS')" ]; then
30
- echo "Error: status $ip_status is already set"
31
- log_event "$E_EXISTS" "$ARGUMENTS"
32
- exit $E_EXISTS
+ check_result "$E_EXISTS" "status $ip_status is already set"
33
fi
34
-
35
web_domains=$(get_ip_value '$U_WEB_DOMAINS')
36
sys_user=$(get_ip_value '$U_SYS_USERS')
37
ip_owner=$(get_ip_value '$OWNER')
38
if [ "$web_domains" -ne '0' ] && [ "$sys_user" != "$ip_owner" ]; then
39
- echo "Error: ip $ip is used"
40
- log_event "$E_INUSE" "$ARGUMENTS"
41
- exit $E_INUSE
+ check_result "$E_INUSE" "ip $ip is used"
42
43
44
0 commit comments