Skip to content

Commit

Permalink
fix(postgres): set pgdata permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 31, 2024
1 parent a5767e7 commit 899d8c6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Postgres plugin for FluentCI"
edition = "2021"
license = "MIT"
name = "postgres"
version = "0.1.8"
version = "0.1.9"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use fluentci_pdk::dag;

// ...

dag().call("https://pkg.fluentci.io/[email protected].8?wasm=1", "start", vec![])?;
dag().call("https://pkg.fluentci.io/[email protected].9?wasm=1", "start", vec![])?;
```

## 📚 Examples
Expand Down
2 changes: 1 addition & 1 deletion postgres/fluentci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description = "Postgres Plugin for FluentCI"
keywords = ["postgres"]
license = "MIT"
name = "postgres"
version = "0.1.8"
version = "0.1.9"
1 change: 1 addition & 0 deletions postgres/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ pub fn setup() -> Result<String, Error> {
false => "[ -f $PGDATA/postgresql.conf ] || flox activate -- initdb"
}
])?
.with_exec(vec!["chmod", "-R", "700", "$PGDATA"])?
.with_exec(vec![
match is_root {
true => "grep -q postgres: Procfile || echo -e 'postgres: sudo -H -E -u fluentci PATH=$PATH bash -c \"flox activate -- postgres -k $PWD -h $PGHOST -i\"\\n' >> Procfile",
Expand Down

0 comments on commit 899d8c6

Please sign in to comment.