Skip to content

Commit

Permalink
Disable shellcheck warnings for sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
tedgin committed Jul 3, 2024
1 parent 327a17b commit c011b3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test-artifacts/control-dbms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ resolve_irods_host() {
start_dbms() {
printf 'Starting PostgreSQL\n'

# shellcheck disable=SC2024
sudo --login --user=postgres \
/usr/lib/postgresql/14/bin/pg_ctl \
--log=/var/log/postgresql/postgresql-14-main.log \
Expand All @@ -50,6 +51,7 @@ start_dbms() {
stop_dbms() {
printf 'Stopping PostgreSQL\n'

# shellcheck disable=SC2024
sudo --login --user=postgres \
/usr/lib/postgresql/14/bin/pg_ctl --pgdata=/var/lib/postgresql/14/main stop \
> >(indent /dev/stdout) \
Expand Down

0 comments on commit c011b3e

Please sign in to comment.