mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Granting superuser to wrolpi during install so they can import maps.
This commit is contained in:
parent
9ea2effe7b
commit
eadc0a7537
2 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue