From 402c2f6924494b8d7b14a54052a2d1ee03b94856 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 25 Mar 2026 15:04:20 +0100 Subject: [PATCH] fix(erpnext): add frappe user to sudoers with NOPASSWD - bench init internally invokes sudo for system operations - frappe user has no password, causing 'Sorry, try again' hang - Add /etc/sudoers.d/frappe with NOPASSWD:ALL --- install/erpnext-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/erpnext-install.sh b/install/erpnext-install.sh index e66c59c7..b01876c0 100644 --- a/install/erpnext-install.sh +++ b/install/erpnext-install.sh @@ -59,6 +59,7 @@ msg_ok "Installed wkhtmltopdf" msg_info "Installing Frappe Bench" useradd -m -s /bin/bash frappe chown frappe:frappe /opt +echo "frappe ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/frappe $STD sudo -u frappe bash -c 'export PATH="$HOME/.local/bin:$PATH"; uv tool install frappe-bench' msg_ok "Installed Frappe Bench"