Custom awstats_index.php.master
The custom awstats_index.php.master is not respected
the original is copied directly:
cron_daily.php: if(!is_file(rec['document_root']."/web/stats/index.php")) copy("/usr/local/ispconfig/server/conf/awstats_index.php.master",
rec['document_root']."/web/stats/index.php");
plugins-available/apache2_plugin.inc.php: copy("/usr/local/ispconfig/server/conf/awstats_index.php.master",$data['new']['document_root']."/web/stats/index.php");
plugins-available/nginx_plugin.inc.php: copy("/usr/local/ispconfig/server/conf/awstats_index.php.master",$data['new']['document_root']."/web/stats/index.php");
plugins-enabled/apache2_plugin.inc.php: copy("/usr/local/ispconfig/server/conf/awstats_index.php.master",$data['new']['document_root']."/web/stats/index.php");
it would be enough to add simple file_exist check on the custom file before copying and changing path