Fix password hash extraction bug in deploy script and sudo issue in setup script
- deploy-homelab.sh: Fix password hash extraction from Docker output - Changed from 'grep || tail' fallback to 'sed | grep' pipeline - Properly strips 'Digest: ' prefix before extracting hash - Prevents corrupted hash format that caused Authelia crash loop - setup-homelab.sh: Fix automatic deployment call - Added 'sudo' when running deploy script from setup - Prevents 'Please run as root' error during automatic deployment
This commit is contained in:
@@ -608,9 +608,9 @@ if [ "${NVIDIA_REBOOT_NEEDED:-false}" != true ]; then
|
||||
echo " cd ~/AI-Homelab && ./scripts/deploy-homelab.sh"
|
||||
echo ""
|
||||
else
|
||||
# Run deployment script as the actual user
|
||||
# Run deployment script as the actual user with sudo
|
||||
cd "$(dirname "$0")/.." || exit 1
|
||||
su - "$ACTUAL_USER" -c "cd $PWD && ./scripts/deploy-homelab.sh"
|
||||
su - "$ACTUAL_USER" -c "cd $PWD && sudo ./scripts/deploy-homelab.sh"
|
||||
fi
|
||||
else
|
||||
log_info "Deployment skipped. Run it manually when ready:"
|
||||
|
||||
Reference in New Issue
Block a user