- check for 'chattr' command, and use 'chflags' (FreeBSD) if not found, fixes #339

- add license-header to function.storeDefaultIndex.php
This commit is contained in:
Michael Kaufmann (d00p)
2010-08-10 07:57:48 +00:00
parent 91c1928309
commit 4b84d978d1
6 changed files with 90 additions and 8 deletions

View File

@@ -254,13 +254,13 @@ $awstatsclean['headerold']) {
// iterate through all subdirs,
// look for php-fcgi-starter files
// and take chattr +i away from them
// and take immutable-flag away from them
// so we can delete them :)
foreach ($its as $fullFileName => $it )
{
if ($it->isFile() && $it->getFilename() == 'php-fcgi-starter')
{
safe_exec('chattr -i ' . escapeshellarg($its->getPathname()));
removeImmutable($its->getPathname());
}
}
// now get rid of old stuff