mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 13:55:08 +00:00
removed adding site names to host (its pointless)
This commit is contained in:
parent
9a57bafc3e
commit
ea70e8669b
2 changed files with 1 additions and 2 deletions
|
|
@ -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
2
dbench
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue