mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
2.x - firewall/metrics/services/cronjobs
This commit is contained in:
@ -18,8 +18,10 @@ public function update(string $user, string $cron): void
|
||||
if ! sudo -u $user crontab -l; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
|
||||
echo 'cron updated!'
|
||||
EOD;
|
||||
|
||||
$this->server->ssh()->exec($command);
|
||||
$this->server->ssh()->exec($command, 'update-cron');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user