2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-09-20 02:59:02 +00:00

feat: wait for connection before creating site

This commit is contained in:
Revant Nandgaonkar 2020-06-12 23:12:52 +05:30
parent da4f866543
commit c618bd86d9

View File

@ -125,7 +125,8 @@ elif [ "$1" = 'schedule' ]; then
fi fi
elif [ "$1" = 'new' ]; then elif [ "$1" = 'new' ]; then
checkConfigExists
checkConnection
if [[ -z "$RUN_AS_ROOT" ]]; then if [[ -z "$RUN_AS_ROOT" ]]; then
su frappe -c ". /home/frappe/frappe-bench/env/bin/activate \ su frappe -c ". /home/frappe/frappe-bench/env/bin/activate \
&& python /home/frappe/frappe-bench/commands/new.py" && python /home/frappe/frappe-bench/commands/new.py"