2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

Update setup_frappe.sh

Check for mariadb in existing repo

Without this check, setup script will fail in jessie 8.5
This commit is contained in:
slushpuppy 2016-06-25 00:12:28 +08:00 committed by GitHub
parent df410c548e
commit 86223201d0

View File

@ -137,7 +137,8 @@ add_debian_mariadb_repo() {
run_cmd sudo apt-get update
run_cmd sudo apt-get install -y software-properties-common python-software-properties
run_cmd sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
if [ -z $(apt-cache search --names-only 'mariadb-server') ]; then
$repo_test=$(apt-cache search --names-only 'mariadb-server')
if [ -z "$repo_test" ]; then
run_cmd sudo add-apt-repository "deb http://ams2.mirrors.digitalocean.com/mariadb/repo/10.0/debian $CODENAME main"
fi
}