mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
fix for caching template
This commit is contained in:
parent
a320b1f32c
commit
b6dd534b60
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue