add decryptall.php
This commit is contained in:
parent
0a3d662dd0
commit
830f5d24c7
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
$status = OC_App::isEnabled('files_encryption');
|
||||
OC_App::enable('files_encryption');
|
||||
|
||||
OCA\Encryption\Crypt::decryptAll();
|
||||
|
||||
if ($status === false) {
|
||||
OC_App::disable('files_encryption');
|
||||
}
|
||||
|
||||
|
||||
\OCP\JSON::success(array('data' => array('message' => 'looks good')));
|
||||
|
Loading…
Reference in New Issue