feat: frappe commands

execute frappe commands with bench
This commit is contained in:
Revant Nandgaonkar
2020-08-13 13:48:46 +05:30
parent 4de36cf904
commit 8cfd762c61
2 changed files with 13 additions and 0 deletions

View File

@@ -201,6 +201,13 @@ 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 "$@"