mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
MariaDB: Refactor installation script "install-mariadb.sh"
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
00022c90d3
commit
24a616fb66
1 changed files with 4 additions and 3 deletions
7
scripts/dist/install-mariadb.sh
vendored
7
scripts/dist/install-mariadb.sh
vendored
|
|
@ -18,11 +18,12 @@ fi
|
|||
|
||||
set -e
|
||||
|
||||
SETUP_URL="https://downloads.mariadb.com/MariaDB/mariadb_repo_setup"
|
||||
MARIADB_VERSION="10.10"
|
||||
MARIADB_URL="https://downloads.mariadb.com/MariaDB/mariadb_repo_setup"
|
||||
|
||||
if [ ! -f "/etc/apt/sources.list.d/mariadb.list" ]; then
|
||||
echo "Adding MariaDB packages sources from \"$SETUP_URL\"..."
|
||||
curl -Ls $SETUP_URL | bash -s -- --mariadb-server-version="mariadb-10.10"
|
||||
echo "Installing MariaDB $MARIADB_VERSION package sources..."
|
||||
curl -Ls $MARIADB_URL | bash -s -- --mariadb-server-version="mariadb-$MARIADB_VERSION"
|
||||
fi
|
||||
|
||||
echo "Installing \"$1\"..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue