update script to fix fscache
This commit is contained in:
parent
80ed5412f1
commit
50eef9a71c
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
// touch shared directories to trigger one-time re-scan for all users
|
||||
$datadir = \OCP\Config::getSystemValue('datadirectory');
|
||||
$currentVersion=OC_Appconfig::getValue('files_sharing', 'installed_version');
|
||||
if (version_compare($currentVersion, '0.2.2', '<')) {
|
||||
if ($handle = opendir($datadir)) {
|
||||
while (false !== ($entry = readdir($handle))) {
|
||||
$sharedFolder = $datadir.'/'.$entry.'/files/Shared';
|
||||
if ($entry != "." && $entry != ".." && is_dir($sharedFolder)) {
|
||||
touch($sharedFolder);
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
}
|
||||
}
|
|
@ -1 +1 @@
|
|||
0.2.1
|
||||
0.2.2
|
Loading…
Reference in New Issue