diff options
author | nashe <thomas@chauchefoin.fr> | 2017-07-16 17:18:07 +0200 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2017-07-16 17:18:07 +0200 |
commit | 820f12e342a67f74a28bdb32857bba6b69ee94e9 (patch) | |
tree | fbf6fd01854770d2b822ca87dd9a873fe9d3a0e2 | |
parent | 8ba18b9ff7f0b9a258d258722eb3a5222fdf6abd (diff) | |
download | planet-820f12e342a67f74a28bdb32857bba6b69ee94e9.tar planet-820f12e342a67f74a28bdb32857bba6b69ee94e9.tar.gz planet-820f12e342a67f74a28bdb32857bba6b69ee94e9.tar.bz2 planet-820f12e342a67f74a28bdb32857bba6b69ee94e9.tar.xz planet-820f12e342a67f74a28bdb32857bba6b69ee94e9.zip |
Files to test for +w rights were not removed by the installer
It leds to some issues with the cache.
-rwxr-xr-x | install.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/install.php b/install.php index 2c417d5..137f0c6 100755 --- a/install.php +++ b/install.php @@ -40,6 +40,8 @@ if (file_exists(__DIR__ . '/custom/config.yml') && isset($login) && isset($passw $CreatePlanetConfig = new PlanetConfig($config); $save['config'] = file_put_contents(__DIR__.'/custom/config.yml', $CreatePlanetConfig->toYaml()); + OpmlManager::save(new Opml(), custom_path('people.opml')); + //Save password $save['password'] = file_put_contents(__DIR__.'/admin/inc/pwd.inc.php', '<?php $login="admin"; $password="'.md5($_REQUEST['password']).'"; ?>'); @@ -69,6 +71,7 @@ if (file_exists(__DIR__ . '/custom/config.yml') && isset($login) && isset($passw foreach ($tests as $v) { if(touch(__DIR__ . $v)) { $strInstall .= installStatus("<code>$v</code> is writable", 'OK', true); + unlink(__DIR__.$v); } else { $strInstall .= installStatus("<code>$v</code> is writable", 'FAIL',false); $strRecommendation .= "<li>Make <code>$v</code> writable with CHMOD</li>"; |