permissions pt2
This commit is contained in:
parent
1788e7094e
commit
37033e240a
|
@ -4,14 +4,15 @@ packages:
|
||||||
- cargo
|
- cargo
|
||||||
- openssl-dev
|
- openssl-dev
|
||||||
- postgresql
|
- postgresql
|
||||||
|
- sudo
|
||||||
sources:
|
sources:
|
||||||
- https://git.e3t.cc/~core/trifid
|
- https://git.e3t.cc/~core/trifid
|
||||||
tasks:
|
tasks:
|
||||||
- setup: |
|
- setup: |
|
||||||
su root -c "su postgres -c mkdir /var/lib/postgresql/data"
|
sudo -u postgres mkdir /var/lib/postgresql/data
|
||||||
su root -c "su postgres -c chmod 0700 /var/lib/postgresql/data"
|
sudo -u postgres chmod 0700 /var/lib/postgresql/data
|
||||||
su root -c "su postgres -c initdb -D /var/lib/postgresql/data"
|
sudo -u postgres initdb -D /var/lib/postgresql/data
|
||||||
su root -c "su postgres -c pg_ctl start -D /var/lib/postgresql/data"
|
sudo -u postgres pg_ctl start -D /var/lib/postgresql/data
|
||||||
cd /home/build/trifid
|
cd /home/build/trifid
|
||||||
cargo install sqlx-cli
|
cargo install sqlx-cli
|
||||||
sqlx database create
|
sqlx database create
|
||||||
|
|
Loading…
Reference in New Issue