mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-22 19:22:19 +00:00
21 lines
426 B
Bash
21 lines
426 B
Bash
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
|
|
|