You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
548 B

#!/bin/sh
# shellcheck disable=SC1090
. "$CI_HELPER"
check_version() {
bin="$1"
ver="$2"
com="$3"
if [ -x "$bin" ]; then
if "$bin" --version | grep " $ver-MariaDB"; then
success "MariaDB $com is in version $2"
else
err_die "MariaDB $com seems to be in wrong version"
fi
else
err_die "Can't find $com server binary"
fi
}
case "$PKG_NAME" in
mariadb-server) check_version /usr/bin/mysqld "$PKG_VERSION" "server" ;;
mariadb-client) check_version /usr/bin/mysql "$PKG_VERSION" "client";;
*) info "Skipping $PKG_NAME" ;;
esac