From ecede453601477b76092ee845d4d31fef1d23485 Mon Sep 17 00:00:00 2001 From: kske Date: Sat, 15 Aug 2020 09:37:16 +0200 Subject: [PATCH] Add install script for developers on Debian-based operating systems --- server/install-debian-dev.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 server/install-debian-dev.sh diff --git a/server/install-debian-dev.sh b/server/install-debian-dev.sh new file mode 100755 index 0000000..eb8975e --- /dev/null +++ b/server/install-debian-dev.sh @@ -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;"