Disable rag_api startup script

This prevents a fresh install of postgres from even starting. There has
to be a better way to run these commands.
This commit is contained in:
Eli Ribble 2026-01-13 15:04:05 +00:00
parent ff0c139dc8
commit 435b4970cb
No known key found for this signature in database

View file

@ -157,7 +157,7 @@ in
};
wantedBy = ["multi-user.target"];
};
systemd.services.postgresql.serviceConfig.ExecStartPost =
/*systemd.services.postgresql.serviceConfig.ExecStartPost =
let sqlFile = pkgs.writeText "librechat-pgvectors-setup.sql" ''
CREATE EXTENSION IF NOT EXISTS vector;
@ -168,7 +168,7 @@ in
'';
in [''
${lib.getExe' config.services.postgresql.package "psql"} -d "rag_api" -f "${sqlFile}"
''];
''];*/
systemd.tmpfiles.rules = [
"d /opt/librechat 0755 librechat librechat"
"d /opt/meilisearch 0755 meilisearch meilisearch"