mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-21 07:15: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:
|
install:
|
||||||
- docker-compose build
|
- docker-compose build
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
- ./dbench init -e
|
- ./dbench init
|
||||||
- pip install --upgrade virtualenv
|
- pip install --upgrade virtualenv
|
||||||
- virtualenv -p python3 testenv
|
- virtualenv -p python3 testenv
|
||||||
- source testenv/bin/activate
|
- source testenv/bin/activate
|
||||||
|
|
|
||||||
|
|
@ -56,13 +56,13 @@ then
|
||||||
frappe_installer $2
|
frappe_installer $2
|
||||||
|
|
||||||
else
|
else
|
||||||
while getopts ':hs:' option; do
|
while getopts ':had:' option; do
|
||||||
case "$option" in
|
case "$option" in
|
||||||
h)
|
h)
|
||||||
display_usage
|
display_usage
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
s)
|
a)
|
||||||
a=$(docker exec -i frappe bash -c "cd ~/frappe-bench && ls sites/*/site_config.json" | grep -o '/.\+/')
|
a=$(docker exec -i frappe bash -c "cd ~/frappe-bench && ls sites/*/site_config.json" | grep -o '/.\+/')
|
||||||
a="${a//$'\n'/ }"
|
a="${a//$'\n'/ }"
|
||||||
a=$(echo $a | tr -d / )
|
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 -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"
|
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
|
echo "Invalid option: -$OPTARG" >&2
|
||||||
display_usage
|
display_usage
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue