upgrade to postgresql 16

This commit is contained in:
Jörg Thalheim 2024-04-01 13:25:32 +02:00
parent 3bbd6366a7
commit f703ee79fc
2 changed files with 5 additions and 3 deletions

View File

@ -17,12 +17,12 @@ let
{
name = "wiki-backup";
runtimeInputs = [
pkgs.postgresql
config.services.postgresql.package
pkgs.util-linux
];
text = ''
mkdir -p /var/lib/mediawiki/backup/
runuser -u postgres -- pg_dump --format=custom mediawiki > /var/lib/mediawiki/backup/db.tmp
runuser -u postgres -- pg_dump --compress=zstd --format=custom mediawiki > /var/lib/mediawiki/backup/db.tmp
mv /var/lib/mediawiki/backup/{db.tmp,db}
'';
};
@ -46,7 +46,7 @@ let
old-wiki-restore = pkgs.writeShellApplication {
name = "old-wiki-restore";
runtimeInputs = [
pkgs.postgresql
config.services.postgresql.package
pkgs.coreutils
pkgs.util-linux
mediawiki-maintenance

View File

@ -127,6 +127,8 @@ in
'';
};
services.postgresql.package = pkgs.postgresql_16;
networking.firewall.allowedTCPPorts = [ 443 80 ];
security.acme.acceptTerms = true;
services.nginx.virtualHosts.${config.services.mediawiki.nginx.hostName} = {