Commit fe967700 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add STATIC_suffix support

parent df0f8729
......@@ -160,6 +160,7 @@ check process httpd2 with pidfile /var/run/httpd2/httpd.pid
and request "/server-status" timeout 20 seconds 3 times within 4 cycles then restart
EOF
# TODO: enable /server-status for localhost/server-status
subst "s|monit:secretword|monit:Dip74iFwwP12|g" /etc/monitrc
subst "s|^set mailserver .*|set mailserver smtp.azbyka.ru port 587|g" /etc/monitrc
subst "s|set alert root@localhost.*|set alert $ADMINEMAIL|g" /etc/monitrc
......
......@@ -95,7 +95,7 @@ echo "$TASK" | grep -q "ves/" || TASK="ves/$1.task"
load_config "$TASK"
DROOT=$HOSTHOME/$AUSER/www/$BASESITE
DROOT=$HOSTHOME/$AUSER/www/$BASESITE$STATIC_suffix
UPSTREAMNAME="upstream-$ACONF"
UPSTREAM="http://$UPSTREAMNAME"
VEPORT=$(printf "%03d" $(($VEID-100)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment