Merge pull request #259 from revant/feat-wait-before-new

feat: wait for connection before creating site
This commit is contained in:
Revant Nandgaonkar 2020-06-12 23:46:49 +05:30 committed by GitHub
commit 9756c03ec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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