Skip to content

Commit

Permalink
Add missing restore link
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkregel committed Feb 7, 2025
1 parent a6d4307 commit b6e07b7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/views/ssh/services/database/mariadb/restore.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if ! DEBIAN_FRONTEND=noninteractive unzip {{ $file }}.zip; then
echo 'VITO_SSH_ERROR' && exit 1
fi

if ! sudo DEBIAN_FRONTEND=noninteractive mysql -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

0 comments on commit b6e07b7

Please sign in to comment.