mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 21:55:09 +00:00
Updated a few more things
This commit is contained in:
parent
ab00022d66
commit
3c53492b20
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue