Add systemd timer fallback when crontab unavailable
All checks were successful
Build and Push Container / build (push) Successful in 33s
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user