diff --git a/server/SHServ/Controllers/DevicesRESTAPIController.php b/server/SHServ/Controllers/DevicesRESTAPIController.php index 5dec3ee..0b86c60 100644 --- a/server/SHServ/Controllers/DevicesRESTAPIController.php +++ b/server/SHServ/Controllers/DevicesRESTAPIController.php @@ -9,7 +9,8 @@ class DevicesRESTAPIController extends \SHServ\Middleware\Controller { protected function withScanLock(callable $callback) { - $lockFile = dirname(__DIR__, 2) . '/Cache/scan.lock'; + $tmpDir = sys_get_temp_dir(); + $lockFile = $tmpDir . '/shserv-scan.lock'; $debugLog = dirname(__DIR__, 2) . '/Cache/scan-debug.log'; $log = function($msg) use ($debugLog) {