From d980aecf831eb07def0afd30a509aa752a8037c4 Mon Sep 17 00:00:00 2001 From: CyB3RC0nN0R 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;"