24 lines
708 B
Bash
Executable File
24 lines
708 B
Bash
Executable File
#!/bin/bash
|
|
# Post-installation script for RhemaWave
|
|
set -e
|
|
|
|
# Create kiosk group if it doesn't exist
|
|
if ! getent group kiosk > /dev/null 2>&1; then
|
|
echo "Creating kiosk group..."
|
|
groupadd --system kiosk
|
|
fi
|
|
|
|
# Create kiosk user if it doesn't exist
|
|
if ! getent passwd kiosk > /dev/null 2>&1; then
|
|
echo "Creating kiosk user..."
|
|
useradd --system --gid kiosk --create-home --home-dir /home/kiosk \
|
|
--shell /bin/bash --comment "RhemaWave Kiosk User" kiosk
|
|
fi
|
|
|
|
# Set proper group ownership for writable directories
|
|
chgrp -R kiosk /usr/local/share/rhemawave
|
|
|
|
# Ensure kiosk user can write to the data directory
|
|
chmod g+w /usr/local/share/rhemawave
|
|
|
|
echo "✓ RhemaWave post-install complete" |