feat: add basic nextcloud role
nextcloud with optional collabora base setup
This commit is contained in:
parent
19986e1205
commit
6ab3505dc8
11 changed files with 404 additions and 0 deletions
10
roles/nextcloud/templates/init-db.sql.j2
Normal file
10
roles/nextcloud/templates/init-db.sql.j2
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- Grant necessary permissions to the Nextcloud PostgreSQL user
|
||||
-- CREATEROLE allows creating roles for Nextcloud apps
|
||||
ALTER USER {{ nextcloud_postgres_user }} WITH CREATEROLE;
|
||||
|
||||
-- Pre-create the Nextcloud database to prevent automatic user creation
|
||||
CREATE DATABASE {{ nextcloud_postgres_db }} OWNER {{ nextcloud_postgres_user }};
|
||||
|
||||
-- Grant CREATE permission on public schema in the new database
|
||||
\c {{ nextcloud_postgres_db }}
|
||||
GRANT CREATE ON SCHEMA public TO {{ nextcloud_postgres_user }};
|
||||
Loading…
Add table
Add a link
Reference in a new issue