Use su in lieu of sudo
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Olivier 'reivilibre' 2021-08-16 13:40:51 +01:00
parent e17afe178f
commit dbff6c6521
1 changed files with 3 additions and 3 deletions

View File

@ -30,14 +30,14 @@ steps:
image: rust:1.54.0-slim-bullseye image: rust:1.54.0-slim-bullseye
commands: commands:
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev python3.9 python3.9-venv postgresql postgresql-client - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev python3.9 python3.9-venv postgresql postgresql-client
- sudo -u postgres createuser root - su -u postgres -c 'createuser root'
- sudo -u postgres createdb -O root testsuitedb - su -u postgres -c 'createdb -O root testsuitedb'
- psql testsuitedb -c 'CREATE TABLE testsuitetable ();' - psql testsuitedb -c 'CREATE TABLE testsuitetable ();'
- cargo install -q --path yama - cargo install -q --path yama
- cargo install -q --path datman - cargo install -q --path datman
- python3.9 -m venv testsuite/.venv - python3.9 -m venv testsuite/.venv
- ./testsuite/.venv/bin/pip install -e testsuite -e datman-helper-postgres - ./testsuite/.venv/bin/pip install -e testsuite -e datman-helper-postgres
- cd testsuite && ./.venv/bin/green - cd testsuite && TEST_POSTGRES=$(hostname),testsuitedb,root ./.venv/bin/green
- name: deploy manual - name: deploy manual
image: rust:1.54.0-slim image: rust:1.54.0-slim