Add systemd timer fallback when crontab unavailable
All checks were successful
Build and Push Container / build (push) Successful in 33s

- Try crontab first, fall back to systemd timer
- If neither available, still deploy script but warn user
- Update frontend to show scheduling method (cron/systemd/none)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Debian
2026-01-05 10:08:04 +00:00
parent ebaadbdffa
commit 6865f3c9a4
2 changed files with 71 additions and 11 deletions

View File

@@ -409,9 +409,17 @@ export default function DiscoveryResults({ scanId, scan, analysis, devMode, onCo
</>
)}
</div>
{result.deployment.cronjob && (
<div className="mt-1 text-xs text-slate-500 font-mono">
Cronjob: {result.deployment.cronjob}
{result.deployment.scheduling && (
<div className="mt-1 text-xs text-slate-500">
{result.deployment.scheduling.method === 'crontab' && (
<span className="font-mono">Cron: {result.deployment.scheduling.info}</span>
)}
{result.deployment.scheduling.method === 'systemd' && (
<span>Systemd timer: {result.deployment.scheduling.info}</span>
)}
{result.deployment.scheduling.method === 'none' && (
<span className="text-amber-400">{result.deployment.scheduling.warning}</span>
)}
</div>
)}
</div>