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 5acbd3b6e1
commit ecede45360
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;"