Claude 2d05767193 Fix update_electron.sh to run without sudo
Changed the script to run as a regular user instead of requiring sudo.
The script now:
- Checks that it's NOT being run as root (prevents sudo usage)
- Uses sudo for individual commands that need elevated privileges
- Prompts for sudo password only when needed

Changes:
- Removed EUID check that required running with sudo
- Added check to prevent running as root
- Added sudo to backup operations (mkdir, cp, file writes)
- All systemctl and npm install commands already use sudo appropriately

This matches the behavior of install_kiosk scripts which should be run
as a regular user, not with sudo.

Usage: ./update_electron.sh (not sudo ./update_electron.sh)
2025-11-20 15:57:40 +00:00
S
Description
Mirror of outis1one/ubuntu-based-kiosk from GitHub
GPL-3.0
3.5 MiB
Languages
Shell 86.8%
JavaScript 5.8%
HTML 4.1%
Python 2.4%
Perl 0.5%
Other 0.4%