mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Fixed webalizer and awstats support for Debian/Ubuntu
This commit is contained in:
parent
170098c54e
commit
6a80e6b218
3 changed files with 19 additions and 4 deletions
|
@ -54,7 +54,10 @@ upd_web_domain_values
|
|||
cat $WEBTPL/$type/$type.tpl |\
|
||||
sed -e "s/%ip%/$ip/g" \
|
||||
-e "s/%web_port%/$WEB_PORT/g" \
|
||||
-e "s/%web_system%/$WEB_SYSTEM/g" \
|
||||
-e "s/%web_ssl_port%/$WEB_SSL_PORT/g" \
|
||||
-e "s/%rgroups%/$WEB_RGROUPS/g" \
|
||||
-e "s/%proxy_system%/$PROXY_SYSTEM/g" \
|
||||
-e "s/%proxy_port%/$PROXY_PORT/g" \
|
||||
-e "s/%proxy_ssl_port%/$PROXY_SSL_PORT/g" \
|
||||
-e "s/%domain_idn%/$domain_idn/g" \
|
||||
|
@ -66,8 +69,11 @@ cat $WEBTPL/$type/$type.tpl |\
|
|||
> $HOMEDIR/$user/conf/web/$type.$domain.conf
|
||||
|
||||
if [ "$type" == 'awstats' ]; then
|
||||
rm -f /etc/awstats/$type.$domain_idn.conf
|
||||
ln -s $HOMEDIR/$user/conf/web/$type.$domain.conf \
|
||||
/etc/awstats/$type.$domain_idn.conf
|
||||
else
|
||||
mkdir -p /var/lib/webalizer
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue