Updated a few more things

This commit is contained in:
chabad360 2018-08-01 19:05:09 -07:00
parent ab00022d66
commit 3c53492b20
2 changed files with 5 additions and 3 deletions

View file

@ -14,7 +14,7 @@ services:
install:
- docker-compose build
- docker-compose up -d
- ./dbench init -e
- ./dbench init
- pip install --upgrade virtualenv
- virtualenv -p python3 testenv
- source testenv/bin/activate

View file

@ -56,13 +56,13 @@ then
frappe_installer $2
else
while getopts ':hs:' option; do
while getopts ':had:' option; do
case "$option" in
h)
display_usage
exit
;;
s)
a)
a=$(docker exec -i frappe bash -c "cd ~/frappe-bench && ls sites/*/site_config.json" | grep -o '/.\+/')
a="${a//$'\n'/ }"
a=$(echo $a | tr -d / )
@ -71,6 +71,8 @@ else
docker exec -u root -i 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"
;;
d)
docker exec -it frappe bash -c "bench --site $OPTARG set-config \"developer_mode\" 1 && bench clear-cache"
\?)
echo "Invalid option: -$OPTARG" >&2
display_usage