You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sed -i "s|host all all 127.0.0.1/32.*|host all all 127.0.0.1/32 md5|" /var/lib/pgsql/data/pg_hba.conf &&echo"pg_hba.conf file updated successfully"||echo"failed to update pg_hba.conf"
62
+
sed -i "s|host all all 127.0.0.1/32.*|host all all 127.0.0.1/32 md5|" /var/lib/pgsql/9.6/data/pg_hba.conf &&echo"pg_hba.conf file updated successfully"||echo"failed to update pg_hba.conf"
62
63
63
-
systemctl start postgresql
64
+
systemctl enable postgresql-9.6
65
+
systemctl start postgresql-9.6
64
66
65
67
#prepare database: create database, user and grant permissions to the user
66
-
printf"CREATE USER $confluence_user WITH PASSWORD '$confluence_usr_pwd';\nCREATE DATABASE $confluence_db WITH ENCODING='UTF8' OWNER=$confluence_user CONNECTION LIMIT=-1;\nGRANT ALL ON ALL TABLES IN SCHEMA public TO $confluence_user;\nGRANT ALL ON SCHEMA public TO $confluence_user;"> myconf/confluence-db.sql
68
+
printf"CREATE USER $confluence_user WITH PASSWORD '$confluence_usr_pwd';\nCREATE DATABASE $confluence_db WITH ENCODING='UNICODE' LC_COLLATE='C' LC_CTYPE='C' TEMPLATE=template0;\nGRANT ALL PRIVILEGES ON DATABASE $confluence_db TO $confluence_user;"> myconf/confluence-db.sql
0 commit comments