matrix-synapse.housecleaning: fixed
This commit is contained in:
parent
da7757fffb
commit
ad03e82feb
1 changed files with 4 additions and 6 deletions
|
@ -20,12 +20,10 @@
|
|||
psqlUser = config.systemd.services.postgresql.serviceConfig.User;
|
||||
dbName = config.services.matrix-synapse.settings.database.args.database;
|
||||
in {
|
||||
serviceConfig = {
|
||||
User = psqlUser;
|
||||
ExecStart = pkgs.writeScript "matrix-synapse-psql-vacuum.sh" ''
|
||||
${config.services.postgresql.package}/bin/psql -d ${dbName} -c "vacuum full"
|
||||
'';
|
||||
};
|
||||
serviceConfig.User = psqlUser;
|
||||
serviceConfig.RemainAfterExit = "yes";
|
||||
|
||||
script = ''${config.services.postgresql.package}/bin/psql -d ${dbName} -c "vacuum full"'';
|
||||
};
|
||||
|
||||
systemd.timers."matrix-synapse-housecleaning-vacuum-db" = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue