From 12a2fe6ef87a04138487ed05e48b4154709651c9 Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 25 Jan 2024 22:49:28 -0800 Subject: [PATCH] Make the directory --- lemmy-container.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lemmy-container.nix b/lemmy-container.nix index e9e3eec..1d4f936 100644 --- a/lemmy-container.nix +++ b/lemmy-container.nix @@ -93,6 +93,7 @@ in { path = with pkgs; [ pwgen config.services.postgresql.package ]; script = '' PASSWD=$(pwgen 25) + mkdir -p /run/lemmy echo "postgresql://lemmy:$PASSWD@lemmy&host=/var/run/postgresql" > /run/lemmy/postgresql.passwd sudo -u postgres psql -c "ALTER USER lemmy ENCRYPTED PASSWORD '$PASSWD';" '';