소스 검색

handler for remi awstats package

Serghey Rodin 12 년 전
부모
커밋
99e20c44df
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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"