feat: use forgejo NixOS module with gitea user #111

Merged
teutat3s merged 1 commit from feat/forgejo-module into main 2024-02-07 16:46:02 +00:00
Owner

https://nixos.org/manual/nixos/stable/#module-forgejo-migration-gitea

This change should avoid additional downtime, an alternative would be to:

systemctl stop gitea
runuser -u postgres -- psql -c '
  ALTER USER gitea RENAME TO forgejo;
  ALTER DATABASE gitea RENAME TO forgejo;
'
nixos-rebuild switch
systemctl stop forgejo
chown -R forgejo:forgejo /var/lib/forgejo
systemctl restart forgejo
https://nixos.org/manual/nixos/stable/#module-forgejo-migration-gitea This change should avoid additional downtime, an alternative would be to: ``` systemctl stop gitea runuser -u postgres -- psql -c ' ALTER USER gitea RENAME TO forgejo; ALTER DATABASE gitea RENAME TO forgejo; ' nixos-rebuild switch systemctl stop forgejo chown -R forgejo:forgejo /var/lib/forgejo systemctl restart forgejo ```
teutat3s added 1 commit 2024-02-06 11:42:01 +00:00
teutat3s requested review from b12f 2024-02-06 11:42:06 +00:00
teutat3s requested review from hensoko 2024-02-06 11:42:06 +00:00
teutat3s requested review from axeman 2024-02-06 11:42:06 +00:00
teutat3s self-assigned this 2024-02-06 11:42:12 +00:00
hensoko approved these changes 2024-02-07 15:42:03 +00:00
teutat3s merged commit b54ff7d6bf into main 2024-02-07 16:46:02 +00:00
teutat3s deleted branch feat/forgejo-module 2024-02-07 16:46:02 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pub-solar/infra#111
No description provided.