22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-06-01 05:49:22 +02:00

postgres: improve commands to run after restart

This commit is contained in:
Sandro - 2023-01-06 23:59:31 +01:00
parent 08e62a61ba
commit feef1d2d4d
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -63,6 +63,11 @@ in
--old-bindir ${oldBin} --new-bindir ${newBin} \
${lib.concatStringsSep " " cfgu.extraArgs} \
"$@"
echo "Run the following commands after setting:"
echo 'services.postgresql.package = pkgs.postgresql_${cfgu.newPackage}'
echo " sudo -u postgres vacuumdb --all --analyze-in-stages"
echo " ${newData}/delete_old_cluster.sh"
''
);
};