Saeed Vaziry cdbde063f0
use blade as conmmands template (#444)
* use blade as conmmands template

* fix lint

* fix ssl
2025-01-27 21:27:58 +01:00

24 lines
512 B
PHP

if ! sudo mkdir -p "$(dirname {{ $logFile }})"; then
echo 'VITO_SSH_ERROR' && exit 1
fi
if ! sudo touch {{ $logFile }}; then
echo 'VITO_SSH_ERROR' && exit 1
fi
if ! sudo chown {{ $user }}:{{ $user }} {{ $logFile }}; 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
if ! sudo supervisorctl start {{ $id }}:*; then
echo 'VITO_SSH_ERROR' && exit 1
fi