mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
12 lines
300 B
PHP
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
|