mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
12 lines
326 B
PHP
12 lines
326 B
PHP
if ! DEBIAN_FRONTEND=noninteractive unzip {{ $file }}.zip; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|
|
|
|
if ! sudo DEBIAN_FRONTEND=noninteractive mariadb -u root {{ $database }} < {{ $file }}.sql; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|
|
|
|
if ! rm {{ $file }}.sql {{ $file }}.zip; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|