mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
20 lines
434 B
PHP
20 lines
434 B
PHP
if ! sudo supervisorctl stop {{ $id }}:*; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|
|
|
|
if ! sudo rm -rf ~/.logs/workers/{{ $id }}.log; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|
|
|
|
if ! sudo rm -rf /etc/supervisor/conf.d/{{ $id }}.conf; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|
|
|
|
if ! sudo supervisorctl reread; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|
|
|
|
if ! sudo supervisorctl update; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|