Move default install location to /opt/stegasoo
- setup.sh: Install to /opt/stegasoo with proper permissions - first-boot-wizard.sh: Use /opt/stegasoo - stegasoo-wizard.sh: Check /opt first, fallback to home dirs - sanitize-for-image.sh: Handle both /opt and home locations 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,9 +2,15 @@
|
||||
# Stegasoo First Boot Wizard Trigger
|
||||
# This file goes in /etc/profile.d/ and runs the wizard on first login
|
||||
|
||||
if [ -f /etc/stegasoo-first-boot ] && [ -f /home/*/stegasoo/rpi/first-boot-wizard.sh ]; then
|
||||
# Find the wizard script
|
||||
WIZARD=$(ls /home/*/stegasoo/rpi/first-boot-wizard.sh 2>/dev/null | head -1)
|
||||
if [ -f /etc/stegasoo-first-boot ]; then
|
||||
# Find the wizard script (check /opt first, then home dirs)
|
||||
WIZARD=""
|
||||
if [ -f /opt/stegasoo/rpi/first-boot-wizard.sh ]; then
|
||||
WIZARD="/opt/stegasoo/rpi/first-boot-wizard.sh"
|
||||
else
|
||||
WIZARD=$(ls /home/*/stegasoo/rpi/first-boot-wizard.sh 2>/dev/null | head -1)
|
||||
fi
|
||||
|
||||
if [ -n "$WIZARD" ]; then
|
||||
bash "$WIZARD"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user