diff --git a/Cargo.lock b/Cargo.lock index af28bde..5d7365f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -574,7 +574,7 @@ dependencies = [ [[package]] name = "postgres" -version = "0.1.8" +version = "0.1.9" dependencies = [ "anyhow", "extism-pdk", diff --git a/postgres/Cargo.toml b/postgres/Cargo.toml index d600be9..be11c29 100644 --- a/postgres/Cargo.toml +++ b/postgres/Cargo.toml @@ -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"] diff --git a/postgres/README.md b/postgres/README.md index 3d466b0..c0ba4a8 100644 --- a/postgres/README.md +++ b/postgres/README.md @@ -36,7 +36,7 @@ use fluentci_pdk::dag; // ... -dag().call("https://pkg.fluentci.io/postgres@v0.1.8?wasm=1", "start", vec![])?; +dag().call("https://pkg.fluentci.io/postgres@v0.1.9?wasm=1", "start", vec![])?; ``` ## 📚 Examples diff --git a/postgres/fluentci.toml b/postgres/fluentci.toml index 68bc1a2..7ba9413 100644 --- a/postgres/fluentci.toml +++ b/postgres/fluentci.toml @@ -4,4 +4,4 @@ description = "Postgres Plugin for FluentCI" keywords = ["postgres"] license = "MIT" name = "postgres" -version = "0.1.8" +version = "0.1.9" diff --git a/postgres/src/helpers.rs b/postgres/src/helpers.rs index d691513..45209bc 100644 --- a/postgres/src/helpers.rs +++ b/postgres/src/helpers.rs @@ -75,6 +75,7 @@ pub fn setup() -> Result { 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",