diff --git a/bin/v-add-web-domain b/bin/v-add-web-domain index 98eaba91..e150d253 100755 --- a/bin/v-add-web-domain +++ b/bin/v-add-web-domain @@ -83,7 +83,7 @@ group="$user" email="$user@$domain" docroot="$HOMEDIR/$user/web/$domain/public_html" conf="$HOMEDIR/$user/conf/web/httpd.conf" -tpl_file="$WEBTPL/apache_$template.tpl" +tpl_file="$WEBTPL/apache/$template.tpl" # Adding domain to the httpd.conf add_web_config @@ -146,8 +146,8 @@ chmod 551 $HOMEDIR/$user/web/$domain/logs chmod 640 /var/log/httpd/domains/$domain.* # Running template trigger -if [ -x $WEBTPL/apache_$template.sh ]; then - $WEBTPL/apache_$template.sh $user $domain $ip $HOMEDIR $docroot +if [ -x $WEBTPL/apache/$template.sh ]; then + $WEBTPL/apache/$template.sh $user $domain $ip $HOMEDIR $docroot fi # Checking main vesta httpd config diff --git a/bin/v-add-web-domain-alias b/bin/v-add-web-domain-alias index 25453b28..c3e99cb6 100755 --- a/bin/v-add-web-domain-alias +++ b/bin/v-add-web-domain-alias @@ -49,7 +49,7 @@ is_package_full 'WEB_ALIASES' # Parsing domain values get_domain_values 'web' -tpl_file="$WEBTPL/apache_$TPL.tpl" +tpl_file="$WEBTPL/apache/$TPL.tpl" conf="$HOMEDIR/$user/conf/web/httpd.conf" ip=$(get_real_ip $IP) @@ -68,7 +68,7 @@ del_web_config add_web_config if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/apache_$TPL.stpl" + tpl_file="$WEBTPL/apache/$TPL.stpl" conf="$HOMEDIR/$user/conf/web/shttpd.conf" del_web_config add_web_config @@ -76,13 +76,13 @@ fi # Checking nginx if [ ! -z "$NGINX" ]; then - tpl_file="$WEBTPL/nginx_$NGINX.tpl" + tpl_file="$WEBTPL/nginx/$NGINX.tpl" conf="$HOMEDIR/$user/conf/web/nginx.conf" del_web_config add_web_config if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" del_web_config add_web_config diff --git a/bin/v-add-web-domain-nginx b/bin/v-add-web-domain-nginx index ae7d54ad..45915bf6 100755 --- a/bin/v-add-web-domain-nginx +++ b/bin/v-add-web-domain-nginx @@ -56,7 +56,7 @@ fi get_domain_values 'web' NGINX="$template" NGINX_EXT="$extentions" -tpl_file="$WEBTPL/nginx_$NGINX.tpl" +tpl_file="$WEBTPL/nginx/$NGINX.tpl" conf="$HOMEDIR/$user/conf/web/nginx.conf" ip=$(get_real_ip $IP) @@ -77,7 +77,7 @@ fi # Checking ssl if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" add_web_config diff --git a/bin/v-add-web-domain-ssl b/bin/v-add-web-domain-ssl index 5b733c89..d3a38e37 100755 --- a/bin/v-add-web-domain-ssl +++ b/bin/v-add-web-domain-ssl @@ -63,7 +63,7 @@ chmod 660 $USER_DATA/ssl/$domain.* # Parsing domain values get_domain_values 'web' conf="$HOMEDIR/$user/conf/web/shttpd.conf" -tpl_file="$WEBTPL/apache_$TPL.stpl" +tpl_file="$WEBTPL/apache/$TPL.stpl" SSL_HOME="$ssl_home" ip=$(get_real_ip $IP) @@ -85,8 +85,8 @@ if [ -e "$USER_DATA/ssl/$domain.ca" ]; then fi # Running template trigger -if [ -x $WEBTPL/apache_$template.sh ]; then - $WEBTPL/apache_$template.sh $user $domain $ip $HOMEDIR $sdocroot +if [ -x $WEBTPL/apache/$template.sh ]; then + $WEBTPL/apache/$template.sh $user $domain $ip $HOMEDIR $sdocroot fi # Checking main vesta httpd config @@ -100,7 +100,7 @@ fi if [ ! -z "$NGINX" ]; then # Adding domain to the snginx.conf conf="$HOMEDIR/$user/conf/web/snginx.conf" - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" add_web_config chown root:nginx $conf diff --git a/bin/v-add-web-domain-stats b/bin/v-add-web-domain-stats index d3feb119..3ebef22d 100755 --- a/bin/v-add-web-domain-stats +++ b/bin/v-add-web-domain-stats @@ -51,7 +51,7 @@ get_domain_values 'web' upd_web_domain_values # Adding statistic config -cat $WEBTPL/$type.tpl |\ +cat $WEBTPL/$type/$type.tpl |\ sed -e "s/%ip%/$ip/g" \ -e "s/%web_port%/$WEB_PORT/g" \ -e "s/%web_ssl_port%/$WEB_SSL_PORT/g" \ diff --git a/bin/v-backup-user b/bin/v-backup-user index 8b84a63d..70807acb 100755 --- a/bin/v-backup-user +++ b/bin/v-backup-user @@ -169,14 +169,14 @@ then # Apache config if [ "$WEB_SYSTEM" = 'apache' ]; then # Parsing httpd.conf - tpl_file="$WEBTPL/apache_$TPL.tpl" + tpl_file="$WEBTPL/apache/$TPL.tpl" conf="$HOMEDIR/$user/conf/web/httpd.conf" get_web_config_brds sed -n "$top_line,$bottom_line p" $conf > conf/httpd.conf # SSL check if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/apache_$TPL.stpl" + tpl_file="$WEBTPL/apache/$TPL.stpl" conf="$HOMEDIR/$user/conf/web/shttpd.conf" get_web_config_brds sed -n "$top_line,$bottom_line p" $conf > conf/shttpd.conf @@ -185,14 +185,14 @@ then # Nginx config if [ ! -z "$NGINX" ] ; then - tpl_file="$WEBTPL/nginx_$NGINX.tpl" + tpl_file="$WEBTPL/nginx/$NGINX.tpl" conf="$HOMEDIR/$user/conf/web/nginx.conf" get_web_config_brds sed -n "$top_line,$bottom_line p" $conf > conf/nginx.conf # SSL check if [ "$SSL" = 'yes' ] ; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" get_web_config_brds sed -n "$top_line,$bottom_line p" $conf > conf/snginx.conf diff --git a/bin/v-change-web-domain-ip b/bin/v-change-web-domain-ip index 6d6c6d63..c4acc572 100755 --- a/bin/v-change-web-domain-ip +++ b/bin/v-change-web-domain-ip @@ -46,7 +46,7 @@ is_ip_avalable # Define variable for replace get_domain_values 'web' ip=$(get_real_ip $ip) -tpl_file="$WEBTPL/apache_$TPL.tpl" +tpl_file="$WEBTPL/apache/$TPL.tpl" conf="$HOMEDIR/$user/conf/web/httpd.conf" old=$(get_real_ip $IP) new=$ip @@ -54,21 +54,21 @@ replace_web_config # Checking ssl if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/apache_$TPL.stpl" + tpl_file="$WEBTPL/apache/$TPL.stpl" conf="$HOMEDIR/$user/conf/web/shttpd.conf" replace_web_config fi # Checking nginx if [ ! -z "$NGINX" ]; then - tpl_file="$WEBTPL/nginx_$NGINX.tpl" + tpl_file="$WEBTPL/nginx/$NGINX.tpl" conf="$HOMEDIR/$user/conf/web/nginx.conf" replace_web_config fi # Checking nginx if [ "$SSL" = 'yes' ] && [ ! -z "$NGINX" ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" replace_web_config fi diff --git a/bin/v-change-web-domain-nginx-tpl b/bin/v-change-web-domain-nginx-tpl index cd250264..0e278fe4 100755 --- a/bin/v-change-web-domain-nginx-tpl +++ b/bin/v-change-web-domain-nginx-tpl @@ -49,7 +49,7 @@ is_nginx_template_valid # Parsing domain values get_domain_values 'web' -tpl_file="$WEBTPL/nginx_$NGINX.tpl" +tpl_file="$WEBTPL/nginx/$NGINX.tpl" conf="$HOMEDIR/$user/conf/web/nginx.conf" ip=$(get_real_ip $IP) @@ -58,7 +58,7 @@ del_web_config # Checking ssl if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" del_web_config fi @@ -66,7 +66,7 @@ fi # Add new vhost NGINX="$template" NGINX_EXT="$extentions" -tpl_file="$WEBTPL/nginx_$NGINX.tpl" +tpl_file="$WEBTPL/nginx/$NGINX.tpl" conf="$HOMEDIR/$user/conf/web/nginx.conf" upd_web_domain_values add_web_config @@ -75,7 +75,7 @@ chmod 640 $conf # Checking ssl if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" add_web_config chown root:nginx $conf diff --git a/bin/v-change-web-domain-sslhome b/bin/v-change-web-domain-sslhome index 03a0ea38..d43a139c 100755 --- a/bin/v-change-web-domain-sslhome +++ b/bin/v-change-web-domain-sslhome @@ -39,7 +39,7 @@ is_object_value_exist 'web' 'DOMAIN' "$domain" '$SSL' get_domain_values 'web' old_ssl_home=$SSL_HOME SSL_HOME=$ssl_home -tpl_file="$WEBTPL/apache_$TPL.stpl" +tpl_file="$WEBTPL/apache/$TPL.stpl" conf="$HOMEDIR/$user/conf/web/shttpd.conf" # Parsing tpl_option @@ -56,8 +56,8 @@ replace_web_config # Checking nginx config if [ ! -z "$NGINX" ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" - conf="$HOMEDIR/$user/conf/web//snginx.conf" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" + conf="$HOMEDIR/$user/conf/web/snginx.conf" replace_web_config fi diff --git a/bin/v-change-web-domain-stats b/bin/v-change-web-domain-stats index ef8dd1cb..7f007c0d 100755 --- a/bin/v-change-web-domain-stats +++ b/bin/v-change-web-domain-stats @@ -63,7 +63,7 @@ rm -f $HOMEDIR/$user/conf/web/$STATS.$domain.conf upd_web_domain_values # Adding statistic config -cat $WEBTPL/$type.tpl |\ +cat $WEBTPL/$type/$type.tpl |\ sed -e "s/%ip%/$ip/g" \ -e "s/%web_port%/$WEB_PORT/g" \ -e "s/%web_ssl_port%/$WEB_SSL_PORT/g" \ diff --git a/bin/v-change-web-domain-tpl b/bin/v-change-web-domain-tpl index 7c989c3b..6bb835fb 100755 --- a/bin/v-change-web-domain-tpl +++ b/bin/v-change-web-domain-tpl @@ -47,40 +47,40 @@ get_domain_values 'web' ip=$(get_real_ip $IP) # Deleting domain -tpl_file="$WEBTPL/apache_$TPL.tpl" +tpl_file="$WEBTPL/apache/$TPL.tpl" old_tpl=$TPL conf="$HOMEDIR/$user/conf/web/httpd.conf" del_web_config # Deleting ssl vhost if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/apache_$TPL.stpl" + tpl_file="$WEBTPL/apache/$TPL.stpl" conf="$HOMEDIR/$user/conf/web/shttpd.conf" del_web_config fi # Defining variables for new vhost config upd_web_domain_values -tpl_file="$WEBTPL/apache_$template.tpl" +tpl_file="$WEBTPL/apache/$template.tpl" # Adding domain to the httpd.conf add_web_config # Running template trigger -if [ -x $WEBTPL/apache_$template.sh ]; then - $WEBTPL/apache_$template.sh $user $domain $ip $HOMEDIR $docroot +if [ -x $WEBTPL/apache/$template.sh ]; then + $WEBTPL/apache/$template.sh $user $domain $ip $HOMEDIR $docroot fi # Checking ssl if [ "$SSL" = 'yes' ]; then conf="$HOMEDIR/$user/conf/web/shttpd.conf" - tpl_file="$WEBTPL/apache_$template.stpl" + tpl_file="$WEBTPL/apache/$template.stpl" add_web_config # Running template trigger - if [ -x $WEBTPL/apache_$template.sh ]; then - $WEBTPL/apache_$template.sh \ + if [ -x $WEBTPL/apache/$template.sh ]; then + $WEBTPL/apache/$template.sh \ "$user" "$domain" "$ip" "$HOMEDIR" "$sdocroot" fi fi diff --git a/bin/v-delete-web-domain b/bin/v-delete-web-domain index 235d06b6..88caabe6 100755 --- a/bin/v-delete-web-domain +++ b/bin/v-delete-web-domain @@ -44,7 +44,7 @@ is_object_unsuspended 'web' 'DOMAIN' "$domain" # Get template name get_domain_values 'web' -tpl_file="$WEBTPL/apache_$TPL.tpl" +tpl_file="$WEBTPL/apache/$TPL.tpl" conf="$HOMEDIR/$user/conf/web/httpd.conf" ip=$(get_real_ip $IP) @@ -60,7 +60,7 @@ fi # Checking ssl if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/apache_$TPL.stpl" + tpl_file="$WEBTPL/apache/$TPL.stpl" conf="$HOMEDIR/$user/conf/web/shttpd.conf" del_web_config @@ -71,12 +71,12 @@ fi # Checking nginx if [ ! -z "$NGINX" ]; then - tpl_file="$WEBTPL/nginx_$NGINX.tpl" + tpl_file="$WEBTPL/nginx/$NGINX.tpl" conf="$HOMEDIR/$user/conf/web/nginx.conf" del_web_config if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" del_web_config fi diff --git a/bin/v-delete-web-domain-alias b/bin/v-delete-web-domain-alias index e855e2a3..7e0746dc 100755 --- a/bin/v-delete-web-domain-alias +++ b/bin/v-delete-web-domain-alias @@ -55,7 +55,7 @@ ALIAS=$(echo "$ALIAS" |\ sed -e "s/^$dom_alias$//g"|\ sed -e "/^$/d"|\ sed -e ':a;N;$!ba;s/\n/,/g') -tpl_file="$WEBTPL/apache_$TPL.tpl" +tpl_file="$WEBTPL/apache/$TPL.tpl" conf="$HOMEDIR/$user/conf/web/httpd.conf" # Preparing domain values for the template substitution @@ -66,7 +66,7 @@ del_web_config add_web_config if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/apache_$TPL.stpl" + tpl_file="$WEBTPL/apache/$TPL.stpl" conf="$HOMEDIR/$user/conf/web/shttpd.conf" del_web_config add_web_config @@ -74,13 +74,13 @@ fi # Checking nginx if [ ! -z "$NGINX" ]; then - tpl_file="$WEBTPL/nginx_$NGINX.tpl" + tpl_file="$WEBTPL/nginx/$NGINX.tpl" conf="$HOMEDIR/$user/conf/web/nginx.conf" del_web_config add_web_config if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" del_web_config add_web_config diff --git a/bin/v-delete-web-domain-nginx b/bin/v-delete-web-domain-nginx index 4c4c4b03..701c5b31 100755 --- a/bin/v-delete-web-domain-nginx +++ b/bin/v-delete-web-domain-nginx @@ -41,13 +41,13 @@ is_object_value_exist 'web' 'DOMAIN' "$domain" '$NGINX' # Defining domain parameters get_domain_values 'web' -tpl_file="$WEBTPL/nginx_$NGINX.tpl" +tpl_file="$WEBTPL/nginx/$NGINX.tpl" conf="$HOMEDIR/$user/conf/web/nginx.conf" del_web_config # Checking ssl if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" del_web_config fi diff --git a/bin/v-delete-web-domain-ssl b/bin/v-delete-web-domain-ssl index bbd2758f..1688bf09 100755 --- a/bin/v-delete-web-domain-ssl +++ b/bin/v-delete-web-domain-ssl @@ -42,14 +42,14 @@ is_object_value_exist 'web' 'DOMAIN' "$domain" '$SSL' # Parsing domain values get_domain_values 'web' conf="$HOMEDIR/$user/conf/web/shttpd.conf" -tpl_file="$WEBTPL/apache_$TPL.stpl" +tpl_file="$WEBTPL/apache/$TPL.stpl" # Deleting domain del_web_config # Checking nginx if [ ! -z "$NGINX" ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" del_web_config fi diff --git a/bin/v-list-web-templates b/bin/v-list-web-templates index 973ad913..fa9085d0 100755 --- a/bin/v-list-web-templates +++ b/bin/v-list-web-templates @@ -17,8 +17,7 @@ source $VESTA/func/main.sh # Json function json_list_wtpl() { - templates=$(ls -t $WEBTPL |grep 'apache' |grep '\.tpl' |cut -f 2 -d '_'\ - |cut -f 1 -d '.') + templates=$(ls -t $WEBTPL/apache | cut -f 1 -d '.' |sort -u ) t_counter=$(echo "$templates" | wc -w) i=1 echo '[' @@ -35,8 +34,7 @@ json_list_wtpl() { # Shell function shell_list_wtpl() { - templates=$(ls -t $WEBTPL |grep 'apache' |grep '\.tpl' |cut -f 2 -d '_'\ - |cut -f 1 -d '.') + templates=$(ls -t $WEBTPL/apache | cut -f 1 -d '.' |sort -u ) if [ -z "$nohead" ]; then echo "Templates" echo "----------" diff --git a/bin/v-list-web-templates-nginx b/bin/v-list-web-templates-nginx index 4b6b0f64..e3c34fc3 100755 --- a/bin/v-list-web-templates-nginx +++ b/bin/v-list-web-templates-nginx @@ -17,8 +17,7 @@ source $VESTA/func/main.sh # Json function json_list_wtpl() { - templates=$(ls -t $WEBTPL |grep 'nginx' |grep '\.tpl' |cut -f 2 -d '_'\ - |cut -f 1 -d '.') + templates=$(ls -t $WEBTPL/nginx | cut -f 1 -d '.' |sort -u ) t_counter=$(echo "$templates" | wc -w) i=1 echo '[' @@ -35,8 +34,7 @@ json_list_wtpl() { # Shell function shell_list_wtpl() { - templates=$(ls -t $WEBTPL |grep 'nginx' |grep '\.tpl' |cut -f 2 -d '_'\ - |cut -f 1 -d '.') + templates=$(ls -t $WEBTPL/nginx | cut -f 1 -d '.' |sort -u ) if [ -z "$nohead" ]; then echo "Templates" echo "----------" diff --git a/bin/v-suspend-web-domain b/bin/v-suspend-web-domain index 4ff21258..9e915ad6 100755 --- a/bin/v-suspend-web-domain +++ b/bin/v-suspend-web-domain @@ -42,7 +42,7 @@ is_object_unsuspended 'web' 'DOMAIN' "$domain" # Parsing domain values get_domain_values 'web' -tpl_file="$WEBTPL/apache_$TPL.tpl" +tpl_file="$WEBTPL/apache/$TPL.tpl" conf="$HOMEDIR/$user/conf/web/httpd.conf" SUSPENDED='yes' ip=$(get_real_ip $IP) @@ -56,7 +56,7 @@ add_web_config # Check ssl if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/apache_$TPL.stpl" + tpl_file="$WEBTPL/apache/$TPL.stpl" conf="$HOMEDIR/$user/conf/web/shttpd.conf" del_web_config add_web_config @@ -64,13 +64,13 @@ fi # Checking nginx if [ ! -z "$NGINX" ]; then - tpl_file="$WEBTPL/nginx_$NGINX.tpl" + tpl_file="$WEBTPL/nginx/$NGINX.tpl" conf="$HOMEDIR/$user/conf/web/nginx.conf" del_web_config add_web_config if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" del_web_config add_web_config diff --git a/bin/v-unsuspend-web-domain b/bin/v-unsuspend-web-domain index f528bead..822dbc46 100755 --- a/bin/v-unsuspend-web-domain +++ b/bin/v-unsuspend-web-domain @@ -40,7 +40,7 @@ is_object_suspended 'web' 'DOMAIN' "$domain" # Parsing domain values get_domain_values 'web' -tpl_file="$WEBTPL/apache_$TPL.tpl" +tpl_file="$WEBTPL/apache/$TPL.tpl" conf="$HOMEDIR/$user/conf/web/httpd.conf" SUSPENDED='no' ip=$(get_real_ip $IP) @@ -54,7 +54,7 @@ add_web_config # Check ssl if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/apache_$TPL.stpl" + tpl_file="$WEBTPL/apache/$TPL.stpl" conf="$HOMEDIR/$user/conf/web/shttpd.conf" del_web_config add_web_config @@ -62,13 +62,13 @@ fi # Checking nginx if [ ! -z "$NGINX" ]; then - tpl_file="$WEBTPL/nginx_$NGINX.tpl" + tpl_file="$WEBTPL/nginx/$NGINX.tpl" conf="$HOMEDIR/$user/conf/web/nginx.conf" del_web_config add_web_config if [ "$SSL" = 'yes' ]; then - tpl_file="$WEBTPL/nginx_$NGINX.stpl" + tpl_file="$WEBTPL/nginx/$NGINX.stpl" conf="$HOMEDIR/$user/conf/web/snginx.conf" del_web_config add_web_config diff --git a/bin/v-update-web-domain-stat b/bin/v-update-web-domain-stat index 289bbf50..1c2513e7 100755 --- a/bin/v-update-web-domain-stat +++ b/bin/v-update-web-domain-stat @@ -93,7 +93,7 @@ build_awstats() { done # Creating index page - cat $WEBTPL/awstats_index.tpl | sed -e "s/%month%/$month/g" >\ + cat $WEBTPL/awstats/index.tpl | sed -e "s/%month%/$month/g" >\ $dir/index.html # Creating navigation page @@ -120,7 +120,7 @@ build_awstats() { select_m="$select_m