f56f0be57ac48af4a6f8c251fcc9280cea22c175
The installation script was failing with "Permission denied" when trying to create the config directory in another user's home directory. Fixes: 1. Added home directory existence check before creating config 2. Use sudo -u to create directory as target user when needed 3. Use sudo tee to write config file (handles all permission scenarios) 4. Use sudo for sed command to modify the created config file 5. Always set proper ownership and permissions after creation This fixes the "mkdir: cannot create directory '/home/kiosk': Permission denied" error. Now the script will: - Verify target user's home directory exists (fail gracefully if not) - Create config directory as the target user - Write config file with sudo to avoid permission issues - Set proper ownership (user:user) and permissions (755 dir, 644 file)
Languages
Shell
94.1%
JavaScript
4.7%
HTML
0.9%
CSS
0.3%