nixos/osquery: do not use the local database for osqueryi

Because the local database is used by the osquery deamon, running
osqueri fails with:

    IO error: While lock file: /var/lib/osquery/osquery.db/LOCK:    Resource temporarily unavailable
This commit is contained in:
Antoine Eiche 2023-07-26 17:22:22 +02:00
parent 8dff9f64ec
commit 8af1d49858

View file

@ -21,7 +21,7 @@ let
osqueryi = pkgs.runCommand "osqueryi" { nativeBuildInputs = [ pkgs.makeWrapper ]; } ''
mkdir -p $out/bin
makeWrapper ${pkgs.osquery}/bin/osqueryi $out/bin/osqueryi \
--add-flags "--flagfile ${flagfile}"
--add-flags "--flagfile ${flagfile} --disable-database"
'';
in
{