Browse Source

handler for remi awstats package

Serghey Rodin 12 năm trước cách đây
mục cha
commit
99e20c44df
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      bin/v-update-web-domain-stat

+ 4 - 0
bin/v-update-web-domain-stat

@@ -63,6 +63,10 @@ build_awstats() {
     if [ -e "/etc/redhat-release" ]; then
         awstats="/usr/share/awstats/wwwroot/cgi-bin/awstats.pl"
         wwwroot="/usr/share/awstats/wwwroot"
+        if [  ! -e "$awstats" ]; then
+            awstats="/var/www/awstats/awstats.pl"
+            wwwroot="/var/www/awstats"
+        fi
     else
         awstats="/usr/lib/cgi-bin/awstats.pl"
         wwwroot="/usr/share/awstats"