mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-04-05 08:54:03 -04:00
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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user