From 2b7f66769912992c4c77db67114d5db8feeeed2d Mon Sep 17 00:00:00 2001 From: Roland Date: Sat, 25 Feb 2023 19:08:46 -0700 Subject: [PATCH] Searching for wrolpi with colon to avoid catching non-wrolpi user. --- scripts/install_debian_11.sh | 2 +- scripts/install_raspberrypios.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install_debian_11.sh b/scripts/install_debian_11.sh index 5c9c78e4..107e6158 100755 --- a/scripts/install_debian_11.sh +++ b/scripts/install_debian_11.sh @@ -58,7 +58,7 @@ cp /opt/wrolpi/50x.html /var/www/50x.html /usr/sbin/nginx -s reload # Create the WROLPi user -grep wrolpi /etc/passwd || useradd -md /home/wrolpi wrolpi -s "$(command -v bash)" +grep wrolpi: /etc/passwd || useradd -md /home/wrolpi wrolpi -s "$(command -v bash)" cat >/home/wrolpi/.pgpass <<'EOF' 127.0.0.1:5432:gis:_renderd:wrolpi 127.0.0.1:5432:wrolpi:wrolpi:wrolpi diff --git a/scripts/install_raspberrypios.sh b/scripts/install_raspberrypios.sh index a4578b5b..bf23c745 100755 --- a/scripts/install_raspberrypios.sh +++ b/scripts/install_raspberrypios.sh @@ -58,7 +58,7 @@ cp /opt/wrolpi/50x.html /var/www/50x.html /usr/sbin/nginx -s reload # Create the WROLPi user -grep wrolpi /etc/passwd || useradd -md /home/wrolpi wrolpi -s "$(command -v bash)" +grep wrolpi: /etc/passwd || useradd -md /home/wrolpi wrolpi -s "$(command -v bash)" cat >/home/wrolpi/.pgpass <<'EOF' 127.0.0.1:5432:gis:_renderd:wrolpi 127.0.0.1:5432:wrolpi:wrolpi:wrolpi