From 37033e240a896815f6b589c886f03cc784e40e2e Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Tue, 7 Feb 2023 13:43:27 -0500 Subject: [PATCH] permissions pt2 --- .build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.build.yml b/.build.yml index 661da5a..6582973 100644 --- a/.build.yml +++ b/.build.yml @@ -4,14 +4,15 @@ packages: - cargo - openssl-dev - postgresql + - sudo sources: - https://git.e3t.cc/~core/trifid tasks: - setup: | - su root -c "su postgres -c mkdir /var/lib/postgresql/data" - su root -c "su postgres -c chmod 0700 /var/lib/postgresql/data" - su root -c "su postgres -c initdb -D /var/lib/postgresql/data" - su root -c "su postgres -c pg_ctl start -D /var/lib/postgresql/data" + sudo -u postgres mkdir /var/lib/postgresql/data + sudo -u postgres chmod 0700 /var/lib/postgresql/data + sudo -u postgres initdb -D /var/lib/postgresql/data + sudo -u postgres pg_ctl start -D /var/lib/postgresql/data cd /home/build/trifid cargo install sqlx-cli sqlx database create