Add install script for developers on Debian-based operating systems

This commit is contained in:
Kai S. K. Engelbart 2020-08-15 09:37:16 +02:00
parent da287d48e4
commit d980aecf83
Signed by: kske
GPG Key ID: D905AB5048D69F06
1 changed files with 9 additions and 0 deletions

9
server/install-debian-dev.sh Executable file
View File

@ -0,0 +1,9 @@
#!/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;"