Commit Graph

5 Commits

Author SHA1 Message Date
wienen c1bf40d7de Find NAS useradd outside PATH
Prompts used since the previous commit:
- De nas heeft wel een useradd commando. Als ik inlog, kan ik useradd uitvoeren

Special observations:
- Non-interactive SSH sessions may omit /usr/sbin from PATH, so deployment now searches common sbin paths for useradd and nologin.
- verplaats_log.json remains modified from the user's run and was intentionally not staged.
2026-07-04 20:09:15 +02:00
wienen 32cee7c65f Handle NAS deploy without useradd
Prompts used since the previous commit:
- sudo: useradd: command not found

Special observations:
- If useradd is unavailable, remote deployment now falls back to the existing SSH user and primary group.
- The systemd template now has a separate group placeholder.
- verplaats_log.json remains modified from the user's run and was intentionally not staged.
2026-07-04 20:07:35 +02:00
wienen cf83946795 Allow sudo password prompts during remote deploy
Prompts used since the previous commit:
- sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
- sudo: a password is required

Special observations:
- deploy_vps.sh now uploads a temporary remote install script and executes it with ssh -tt so sudo can prompt on a terminal.
- The remote script starts with sudo -v to validate credentials once before install steps.
- verplaats_log.json remains modified from the user's run and was intentionally not staged.
2026-07-04 20:05:36 +02:00
wienen 5932e8927e Allow remote NAS deployment target
Prompts used since the previous commit:
- Ik wil dit testen op mijn NAS, die lokaal hier in huis draait. Dus niet op vps.australius.nl. Kan dat ook?

Special observations:
- deploy_vps.sh now accepts REMOTE_HOST and REMOTE_USER, with VPS_HOST/VPS_USER kept as aliases.
- The current service install path still assumes a Linux/systemd target with sudo; Synology/QNAP-style NAS deployment may need scheduler or container adaptation.
- verplaats_log.json remains modified from the user's run and was intentionally not staged.
2026-07-04 20:02:43 +02:00
wienen 5c0e345fd8 Add VPS IMAP sorting automation
Prompts used since the previous commit:
- Hieronder staat je oorspronkelijke plan. Volgens mij moet stap 'Add VPS automation' nog worden uitgevoerd, inclusief de testen.

Special observations:
- Added a testable IMAP sorting daemon, shared IMAP operation helpers, systemd service template, and SSH deployment script.
- Local tests passed; no live VPS deployment or mailbox-affecting daemon test was run.
- verplaats_log.json remains modified from the user's run and was intentionally not staged.
2026-07-04 20:00:17 +02:00