Skip to content

Commit

Permalink
Use useradd instead of adduser
Browse files Browse the repository at this point in the history
  • Loading branch information
sytelus committed Sep 3, 2017
1 parent f5896a3 commit 4848bb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ install:
docker exec xenial apt-get -y install git wget unzip sudo;
docker exec xenial apt-get -y install build-essential software-properties-common cmake;
docker exec xenial apt-get update;
docker exec -ti -u root useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
elif [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TOOL" == "cmake" ]]; then
echo "No install osx actions--using repo";
fi
Expand Down
8 changes: 6 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ pushd "$SCRIPT_DIR" >/dev/null
git submodule update --init --recursive

#give user perms to access USB port - this is not needed if not using PX4 HIL
sudo adduser $USER dialout
sudo usermod -a -G dialout $USER
if [ "$(uname)" == "Darwin" ]; then
sudo dseditgroup -o edit -a `whoami` -t user dialout
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
sudo /usr/sbin/useradd -G dialout $USER
sudo usermod -a -G dialout $USER
fi

# get clang, libc++
# sudo rm -rf llvm-build
Expand Down

0 comments on commit 4848bb1

Please sign in to comment.