From eadc0a7537c46ae5bca8cf686db63f5802333adf Mon Sep 17 00:00:00 2001 From: Roland Date: Sat, 25 Feb 2023 18:43:40 -0700 Subject: [PATCH] Granting superuser to wrolpi during install so they can import maps. --- scripts/install_debian_11.sh | 2 ++ scripts/install_raspberrypios.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/install_debian_11.sh b/scripts/install_debian_11.sh index b262020e..5c9c78e4 100755 --- a/scripts/install_debian_11.sh +++ b/scripts/install_debian_11.sh @@ -99,6 +99,8 @@ sudo -u postgres psql -c '\l' | grep wrolpi || ( sudo -u postgres psql -c "alter user wrolpi password 'wrolpi'" && sudo -u postgres createdb -E UTF8 -O wrolpi wrolpi ) +# wrolpi user is superuser so they can import maps. +sudo -u postgres psql -c "alter user wrolpi with superuser" # Initialize/upgrade the WROLPi database. (cd /opt/wrolpi && /opt/wrolpi/venv/bin/python3 /opt/wrolpi/main.py db upgrade) diff --git a/scripts/install_raspberrypios.sh b/scripts/install_raspberrypios.sh index af723f94..c570cb37 100755 --- a/scripts/install_raspberrypios.sh +++ b/scripts/install_raspberrypios.sh @@ -94,6 +94,8 @@ sudo -u postgres psql -c '\l' | grep wrolpi || ( sudo -u postgres psql -c "alter user wrolpi password 'wrolpi'" && sudo -u postgres createdb -E UTF8 -O wrolpi wrolpi ) +# wrolpi user is superuser so they can import maps. +sudo -u postgres psql -c "alter user wrolpi with superuser" # Initialize/upgrade the WROLPi database. (cd /opt/wrolpi && /opt/wrolpi/venv/bin/python3 /opt/wrolpi/main.py db upgrade)