lemmy: systemd postgresql setup service cleanup

This commit is contained in:
happysalada 2021-10-26 19:11:01 +09:00 committed by Raphael Megzari
parent 39423b9f03
commit a8f9539d01

View File

@ -214,8 +214,6 @@ in
systemd.services.lemmy-postgresql = mkIf cfg.settings.database.createLocally { systemd.services.lemmy-postgresql = mkIf cfg.settings.database.createLocally {
description = "Lemmy postgresql db"; description = "Lemmy postgresql db";
after = [ "postgresql.service" ]; after = [ "postgresql.service" ];
bindsTo = [ "postgresql.service" ];
requiredBy = [ "lemmy.service" ];
partOf = [ "lemmy.service" ]; partOf = [ "lemmy.service" ];
script = with cfg.settings.database; '' script = with cfg.settings.database; ''
PSQL() { PSQL() {