Skip to content

Commit

Permalink
Merge pull request deis#2954 from johanneswuerbach/no-sudo
Browse files Browse the repository at this point in the history
chore(controller): No sudo for deis
  • Loading branch information
carmstrong committed Feb 11, 2015
2 parents 5be2fe5 + f540e96 commit db2aec4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions controller/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ apt-get update && \
# install pip
curl -sSL https://raw.githubusercontent.com/pypa/pip/1.5.6/contrib/get-pip.py | python -

# add a deis user that has passwordless sudo (for now)
useradd deis --groups sudo --home-dir /app --shell /bin/bash
sed -i -e 's/%sudo\tALL=(ALL:ALL) ALL/%sudo\tALL=(ALL:ALL) NOPASSWD:ALL/' /etc/sudoers
# add a deis user
useradd deis --home-dir /app --shell /bin/bash

# create a /app directory for storing application data
mkdir -p /app && chown -R deis:deis /app
Expand Down

0 comments on commit db2aec4

Please sign in to comment.