From 2b7336c2aea2bbf8e703c8fb0b18638b1e216835 Mon Sep 17 00:00:00 2001 From: Peter Salomonsen Date: Thu, 7 Nov 2024 06:18:04 +0000 Subject: [PATCH] create database in codespace --- .devcontainer/install-dependencies.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.devcontainer/install-dependencies.sh b/.devcontainer/install-dependencies.sh index ed3fe59..b905091 100755 --- a/.devcontainer/install-dependencies.sh +++ b/.devcontainer/install-dependencies.sh @@ -9,6 +9,7 @@ sudo service postgresql start # Switch to postgres user to set up roles and database sudo su - postgres -c " + psql -c \"CREATE DATABASE devhub_cache_api_rs\" psql -c \"CREATE ROLE devhub_cache_api_rs WITH LOGIN PASSWORD 'password';\" psql -c \"ALTER ROLE devhub_cache_api_rs CREATEDB;\" psql -c \"GRANT ALL PRIVILEGES ON DATABASE devhub_cache_api_rs TO devhub_cache_api_rs;\"