From 716a861b3689f72f42480d5478e111fd4473487b Mon Sep 17 00:00:00 2001 From: Llloooggg Date: Wed, 18 Aug 2021 19:30:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D0=BF=D0=B5=D1=87=D0=B0=D1=82=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runscripts/postgres/createdb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 runscripts/postgres/createdb diff --git a/runscripts/postgres/createdb b/runscripts/postgres/createdb new file mode 100644 index 0000000..33065b4 --- /dev/null +++ b/runscripts/postgres/createdb @@ -0,0 +1,11 @@ +sudo -u postgres psql + +CREATE DATABASE dyxless; + +CREATE ROLE dyxless; + +ALTER USER dyxless WITH PASSWORD 'password'; + +ALTER ROLE "dyxless" WITH LOGIN; + +ALTER DATABASE dyxless OWNER TO dyxless; \ No newline at end of file