new improved template scheme

This commit is contained in:
Serghey Rodin 2013-05-10 11:04:40 +03:00
commit fd4e68bb8c
96 changed files with 1395 additions and 1425 deletions

View file

@ -209,7 +209,7 @@ is_object_valid() {
fi
fi
if [ -z "$sobject" ]; then
echo "Error: $3 not exist"
echo "Error: $2 $3 not exist"
log_event "$E_NOTEXIST" "$EVENT"
exit $E_NOTEXIST
fi
@ -684,7 +684,7 @@ validate_format_mhdmw() {
fi
}
# Nginx static extention or DNS record
# proxy extention or DNS record
validate_format_common() {
exclude="[!|#|$|^|&|(|)|+|=|{|}|:|<|>|?|/|\|\"|'|;|%|\`| ]"
if [[ "$1" =~ $exclude ]] || [ 200 -le ${#1} ]; then