vito/resources/views/ssh/phpmyadmin/install.blade.php
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

30 lines
747 B
PHP

if ! rm -rf phpmyadmin; then
echo 'VITO_SSH_ERROR' && exit 1
fi
if ! rm -rf {{ $path }}; then
echo 'VITO_SSH_ERROR' && exit 1
fi
if ! wget https://files.phpmyadmin.net/phpMyAdmin/{{ $version }}/phpMyAdmin-{{ $version }}-all-languages.zip; then
echo 'VITO_SSH_ERROR' && exit 1
fi
if ! unzip phpMyAdmin-{{ $version }}-all-languages.zip; then
echo 'VITO_SSH_ERROR' && exit 1
fi
if ! rm -rf phpMyAdmin-{{ $version }}-all-languages.zip; then
echo 'VITO_SSH_ERROR' && exit 1
fi
if ! mv phpMyAdmin-{{ $version }}-all-languages {{ $path }}; then
echo 'VITO_SSH_ERROR' && exit 1
fi
if ! mv {{ $path }}/config.sample.inc.php {{ $path }}/config.inc.php; then
echo 'VITO_SSH_ERROR' && exit 1
fi
echo "PHPMyAdmin installed!"