fix for caching template

This commit is contained in:
Serghey Rodin 2015-10-05 23:31:53 +03:00
commit b6dd534b60
3 changed files with 9 additions and 9 deletions

View file

@ -11,11 +11,11 @@ is_web_template_valid() {
# Proxy template check
is_proxy_template_valid() {
template=$1
t="$WEBTPL/$PROXY_SYSTEM/$template.tpl"
s="$WEBTPL/$PROXY_SYSTEM/$template.stpl"
proxy=$1
t="$WEBTPL/$PROXY_SYSTEM/$proxy.tpl"
s="$WEBTPL/$PROXY_SYSTEM/$proxy.stpl"
if [ ! -e $t ] || [ ! -e $s ]; then
echo "Error: proxy template $template not found"
echo "Error: proxy template $proxy not found"
log_event "$E_NOTEXIST" "$EVENT"
exit $E_NOTEXIST
fi