aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2009-01-21 21:42:00 +0000
committerrub <rub@piwigo.org>2009-01-21 21:42:00 +0000
commit5865b1e90bd29b3c1d02933446f715400e35dfc9 (patch)
tree9be5ec8bd4e62bbaab7f7b7739554c2a9e830568 /install
parent5cab9dbf8f5cf8a4cdf32d89ab262128192c75da (diff)
Try to change write permission before deletion on 80-database.php (delete old and unused files and directories)
git-svn-id: http://piwigo.org/svn/trunk@3107 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'install')
-rw-r--r--install/db/80-database.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/install/db/80-database.php b/install/db/80-database.php
index a6e927732..fd403d8d7 100644
--- a/install/db/80-database.php
+++ b/install/db/80-database.php
@@ -962,6 +962,7 @@ foreach ($files as $file)
if (is_file($file))
{
echo 'Delete file '.$file."\n";
+ @chmod($file, 0777);
if (! unlink($file))
{
echo 'Error on delete file '.$file."\n";
@@ -970,6 +971,7 @@ foreach ($files as $file)
elseif (is_dir($file))
{
echo 'Delete directory '.$file."\n";
+ @chmod($file, 0777);
if (! rmdir($file))
{
echo 'Error on directory file '.$file."\n";