10 lines
248 B
Bash
10 lines
248 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Install postgresql
|
||
|
sudo apt update
|
||
|
sudo apt install -y postgresql
|
||
|
|
||
|
# Create envoy user and database
|
||
|
sudo -u postgres psql -c "CREATE USER envoy WITH PASSWORD 'envoy';"
|
||
|
sudo -u postgres psql -c "CREATE DATABASE envoy WITH OWNER envoy;"
|