From d83a1e47a5372144292bb475f54847312fa355a4 Mon Sep 17 00:00:00 2001 From: Varik Matevosyan Date: Fri, 15 Nov 2024 22:32:04 +0400 Subject: [PATCH] fix adduser command on lantern setup --- rhizome/lantern/bin/configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rhizome/lantern/bin/configure b/rhizome/lantern/bin/configure index 773193691..43c7465b5 100755 --- a/rhizome/lantern/bin/configure +++ b/rhizome/lantern/bin/configure @@ -48,8 +48,7 @@ def setup_fs 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 --gid 100 --disabled-password --gecos '' 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 chown -R postgres:postgres #{$datadir}" end