Skip to content

Commit

Permalink
Run as non-root user.
Browse files Browse the repository at this point in the history
  • Loading branch information
notroj committed Nov 16, 2023
1 parent bbc1f0a commit 39e9ef6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/travis_before_linux.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash -xe

if [ $EUID = 0 ]; then
useradd user
su - user -- $0 $*
fi

if test -v CLEAR_CACHE; then
rm -rf $HOME/root
fi
Expand Down
4 changes: 4 additions & 0 deletions test/travis_run_linux.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash -ex

if [ $EUID = 0 ]; then
su - user -- $0 $*
fi

# Test for APLOGNO() macro errors (duplicates, empty args) etc. For
# trunk, run the updater script to see if it fails. If it succeeds
# and changes any files (because there was a missing argument), the
Expand Down

0 comments on commit 39e9ef6

Please sign in to comment.