removed adding site names to host (its pointless)

This commit is contained in:
Mendel Greenberg 2019-01-18 07:45:44 -05:00
parent 9a57bafc3e
commit ea70e8669b
No known key found for this signature in database
GPG key ID: B26A7D2DF7DC6EF7
2 changed files with 1 additions and 2 deletions

View file

@ -29,6 +29,7 @@ USER root
RUN pip install -e bench-repo && rm -rf ~/.cache/pip \
&& npm install -g yarn \
&& chown -R frappe:frappe /home/frappe/*
RUN printf '# User rules for frappe\nfrappe ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/frappe
USER frappe
WORKDIR /home/frappe/frappe-bench

2
dbench
View file

@ -17,9 +17,7 @@ elif [ "$1" == 'setup' ] && [ "$2" == 'hosts' ]; then
a="${a//$'\n'/ }"
a=$(echo $a | tr -d / )
result="127.0.0.1 ${a}"
echo $result | sudo tee -a /etc/hosts
docker exec -iu root frappe bash -c "echo ${result} | tee --append /etc/hosts"
docker exec -itu root frappe bash -c "printf '# User rules for frappe\nfrappe ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/frappe"
elif [ "$1" == '-c' ]; then
shift
user=$1