File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1126,7 +1126,7 @@ is_format_valid() {
11261126 proxy_ext) is_extention_format_valid " $arg " ;;
11271127 quota) is_int_format_valid " $arg " ' quota' ;;
11281128 record) is_common_format_valid " $arg " ' record' ;;
1129- restart) is_boolean_format_valid " $arg " ' restart' ;;
1129+ restart) is_restart_format_valid " $arg " ' restart' ;;
11301130 role) is_role_valid " $arg " ' role' ;;
11311131 rtype) is_dns_type_format_valid " $arg " ;;
11321132 rule) is_int_format_valid " $arg " " rule id" ;;
@@ -1188,6 +1188,11 @@ format_aliases() {
11881188 fi
11891189}
11901190
1191+ is_restart_format_valid () {
1192+ if [ " $1 " != ' yes' ] && [ " $1 " != ' no' ] && [ " $1 " != ' ssl' ] && [ " $1 " != ' reload' ]; then
1193+ check_result $E_INVALID " invalid $2 format :: $1 "
1194+ fi
1195+ }
11911196
11921197check_backup_conditions () {
11931198 # Checking load average
You can’t perform that action at this time.
0 commit comments