photoprism/docker/scripts/install-mariadb-client.sh
2022-02-17 15:48:55 +01:00

11 lines
No EOL
324 B
Bash
Executable file

#!/usr/bin/env bash
# abort if the user is not root
if [[ $(id -u) != "0" ]]; then
echo "Usage: run install-mariadb-client.sh as root" 1>&2
exit 1
fi
curl -Ls https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | bash -s -- --mariadb-server-version="mariadb-10.6"
apt-get update
apt-get -qq install mariadb-client