mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
use blade as conmmands template (#444)
* use blade as conmmands template * fix lint * fix ssl
This commit is contained in:
9
resources/views/ssh/cron/update.blade.php
Normal file
9
resources/views/ssh/cron/update.blade.php
Normal file
@ -0,0 +1,9 @@
|
||||
if ! echo '{{ $cron }}' | sudo -u {{ $user }} crontab -; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
|
||||
if ! sudo -u {{ $user }} crontab -l; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
|
||||
echo 'cron updated!'
|
Reference in New Issue
Block a user