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
This commit is contained in:
CanbiZ (MickLesk)
2026-03-25 15:04:20 +01:00
parent 83a2a4c37e
commit 402c2f6924

View File

@@ -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"