didi-website-erp-crm/erp_crm/bin/start-bench-service.sh

14 lines
368 B
Bash
Executable file

#!/bin/bash
set -e
APP_DIR="/home/frappe/frappe-bench/apps/didi_custom"
VENV_PYTHON="/home/frappe/frappe-bench/env/bin/python"
if [ -d "$APP_DIR" ]; then
if ! "$VENV_PYTHON" -c "import didi_custom" >/dev/null 2>&1; then
echo "[bootstrap] Installing didi_custom..."
/home/frappe/frappe-bench/env/bin/pip install -e "$APP_DIR"
fi
fi
exec "$@"