fix: accept args for bench commands

This commit is contained in:
Revant Nandgaonkar
2020-08-30 00:06:56 +05:30
parent 358e1ca7c9
commit e9080d3952
5 changed files with 22 additions and 9 deletions

View File

@@ -201,15 +201,8 @@ elif [ "$1" = 'restore-backup' ]; then
&& python /home/frappe/frappe-bench/commands/restore_backup.py"
exit
elif [ "$1" = 'bench' ]; then
exec su frappe -c '/home/frappe/frappe-bench/env/bin/python \
/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py \
frappe "$@"'
exit
else
exec su frappe -c "$@"
exec $@
fi