2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-22 22:58:31 +00:00

Merge pull request #246 from slushpuppy/master

mariadb repo check
This commit is contained in:
Rushabh Mehta 2016-07-04 11:56:36 +05:30 committed by GitHub
commit 29a8b72ffd

View File

@ -134,11 +134,13 @@ add_debian_mariadb_repo() {
echo Unsupported Debian Version
exit 1
fi
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
run_cmd sudo add-apt-repository "deb http://ams2.mirrors.digitalocean.com/mariadb/repo/10.0/debian $CODENAME main"
$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
}
add_ius_repo() {