Skip to content

Commit

Permalink
postgres fix user setup
Browse files Browse the repository at this point in the history
  • Loading branch information
var77 committed Nov 15, 2024
1 parent 689ad70 commit 7bbdeca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rhizome/lantern/bin/configure
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def setup_fs
r "sudo mount /dev/sdb #{$datadir}"
r "sudo su -c \"echo '/dev/sdb #{$datadir} ext4 defaults 0 0' >> /etc/fstab\""

r "sudo addgroup --gid 1001 postgres"
r "sudo adduser -u 1001 --system --quiet --home /var/lib/postgresql --no-create-home --shell /bin/bash --gid 1001 --gecos 'PostgreSQL administrator' postgres"
r "sudo addgroup --gid 1111 postgres"
r "sudo adduser -u 1111 --system --quiet --home /var/lib/postgresql --no-create-home --shell /bin/bash --gid 1111 --gecos 'PostgreSQL administrator' postgres"
r "sudo chown -R postgres:postgres #{$datadir}"
end

Expand Down

0 comments on commit 7bbdeca

Please sign in to comment.