yet again more db tweaking
This commit is contained in:
parent
d2899a6abd
commit
4f8a0884e6
|
@ -88,6 +88,8 @@ sudo -u postgres psql <<DB
|
|||
CREATE DATABASE ${ETHERPAD_DB_NAME};
|
||||
CREATE USER ${ETHERPAD_DB_USER} WITH ENCRYPTED PASSWORD '${ETHERPAD_DB_PASS}';
|
||||
GRANT ALL PRIVILEGES ON DATABASE ${ETHERPAD_DB_NAME} TO ${ETHERPAD_DB_USER};
|
||||
\c ${ETHERPAD_DB_NAME}
|
||||
ALTER SCHEMA public OWNER TO ${ETHERPAD_DB_USER};
|
||||
GRANT CREATE, USAGE ON SCHEMA public TO ${ETHERPAD_DB_USER};
|
||||
DB
|
||||
|
||||
|
|
|
@ -196,8 +196,11 @@ sudo -u postgres psql <<DB
|
|||
CREATE DATABASE nextcloud_db;
|
||||
CREATE USER ${NC_DB_USER} WITH ENCRYPTED PASSWORD '${NC_DB_PASSWD}';
|
||||
GRANT ALL PRIVILEGES ON DATABASE ${NC_DB} TO ${NC_DB_USER};
|
||||
\c nextcloud_db
|
||||
ALTER SCHEMA public OWNER TO ${NC_DB_USER};
|
||||
GRANT CREATE, USAGE ON SCHEMA public TO ${NC_DB_USER};
|
||||
DB
|
||||
|
||||
echo -e "\nDone!\n"
|
||||
|
||||
# Add .mjs as a file extension for javascript
|
||||
|
|
Loading…
Reference in New Issue