Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
27f2bbd0
Commit
27f2bbd0
authored
Jul 05, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DB] config postgres script.
parent
93400b1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
create
devops/postgres/create
+21
-0
schema
devops/postgres/schema
+0
-0
schema.sql
devops/postgres/schema.sql
+0
-0
No files found.
devops/postgres/create
0 → 100644
View file @
27f2bbd0
#!/bin/bash
sudo
su postgres
PW
=
"password"
DB
=
"gargandbV5"
USER
=
"gargantua"
psql
-c
"CREATE USER
\"
${
USER
}
\"
psql -c "
ALTER USER
\"
${
USER
}
\"
with PASSWORD
\"
${
PW
}
\"
"
psql -c "
DROP DATABASE IF EXISTS
\"
${
DB
}
\"
"
createdb "
${
DB
}
"
psql "
${
DB
}
" < schema.sql
psql -c "
ALTER DATABASE
\"
${
DB
}
\"
OWNER to
\"
${
USER
}
\"
;
"
src/Gargantext/Database/Schema/createdb
→
devops/postgres/schema
View file @
27f2bbd0
File moved
src/Gargantext/Database/Schema
/schema.sql
→
devops/postgres
/schema.sql
View file @
27f2bbd0
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment