diff options
author | Nick Cao <nickcao@nichi.co> | 2024-01-03 11:03:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 11:03:06 -0500 |
commit | fa5ad5c4d0f8a80bf79bdc15d6edc21673b1c209 (patch) | |
tree | 6f251857a0153fccce7de05333b57d0ada5c02af /nixos/modules/services | |
parent | 5331f6dbe085ce2d196f2b9cc085539316ef674c (diff) | |
parent | e51c00fb234718085e10dc00609f22e4746c500e (diff) | |
download | nixlib-fa5ad5c4d0f8a80bf79bdc15d6edc21673b1c209.tar nixlib-fa5ad5c4d0f8a80bf79bdc15d6edc21673b1c209.tar.gz nixlib-fa5ad5c4d0f8a80bf79bdc15d6edc21673b1c209.tar.bz2 nixlib-fa5ad5c4d0f8a80bf79bdc15d6edc21673b1c209.tar.lz nixlib-fa5ad5c4d0f8a80bf79bdc15d6edc21673b1c209.tar.xz nixlib-fa5ad5c4d0f8a80bf79bdc15d6edc21673b1c209.tar.zst nixlib-fa5ad5c4d0f8a80bf79bdc15d6edc21673b1c209.zip |
Merge pull request #278501 from hughobrien/invidious-fix
nixos/invidious: Additional fix for user message on 24.05 changes
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/web-apps/invidious.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/invidious.nix b/nixos/modules/services/web-apps/invidious.nix index 32158f9575be..359aaabfe673 100644 --- a/nixos/modules/services/web-apps/invidious.nix +++ b/nixos/modules/services/web-apps/invidious.nix @@ -155,8 +155,9 @@ let to work, the username used to connect to PostgreSQL must match the database name, that is services.invidious.settings.db.user must match services.invidious.settings.db.dbname. This is the default since NixOS 24.05. For older systems, it is normally safe to manually set - services.invidious.database.user to "invidious" as the new user will be created with permissions - for the existing database. `REASSIGN OWNED BY kemal TO invidious;` may also be needed. + the user to "invidious" as the new user will be created with permissions + for the existing database. `REASSIGN OWNED BY kemal TO invidious;` may also be needed, it can be + run as `sudo -u postgres env psql --user=postgres --dbname=invidious -c 'reassign OWNED BY kemal to invidious;'`. ''; } ]; |