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

12 lines
300 B
PHP

if ! DEBIAN_FRONTEND=noninteractive unzip {{ $file }}.zip; then
echo 'VITO_SSH_ERROR' && exit 1
fi
if ! sudo -u postgres psql -d {{ $database }} -f {{ $file }}.sql; then
echo 'VITO_SSH_ERROR' && exit 1
fi
if ! rm {{ $file }}.sql {{ $file }}.zip; then
echo 'VITO_SSH_ERROR' && exit 1
fi