Module: kamailio
Branch: master
Commit: d581c007ac29aea2c70fbeecdcebda701c37aa37
URL:
https://github.com/kamailio/kamailio/commit/d581c007ac29aea2c70fbeecdcebda7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2017-10-25T12:03:27+02:00
Merge pull request #1280 from sergey-safarov/alpine
pkg/kamailio/alpine_docker: Added support ssh git repo url
---
Modified: pkg/kamailio/alpine_docker/build.sh
---
Diff:
https://github.com/kamailio/kamailio/commit/d581c007ac29aea2c70fbeecdcebda7…
Patch:
https://github.com/kamailio/kamailio/commit/d581c007ac29aea2c70fbeecdcebda7…
---
diff --git a/pkg/kamailio/alpine_docker/build.sh b/pkg/kamailio/alpine_docker/build.sh
index dee81c7467..75516c2c9f 100755
--- a/pkg/kamailio/alpine_docker/build.sh
+++ b/pkg/kamailio/alpine_docker/build.sh
@@ -23,7 +23,7 @@ apk add --no-cache abuild git gcc build-base bison db-dev flex expat-dev
perl-de
build_and_install(){
cd /usr/src/kamailio
- REPO_OWNER=$(git remote get-url origin 2> /dev/null | sed -e
's:^.*github.com/::' -e 's:/.*\.git::')
+ REPO_OWNER=$(git remote get-url origin 2> /dev/null | sed -e
's|^.*github.com/||' -e 's|^git@github.com:||' -e 's|/.*\.git||')
if [ ! -z "$REPO_OWNER" ]; then
sed -i -e "s:github.com/kamailio:github.com/$REPO_OWNER:"
/usr/src/kamailio/pkg/kamailio/alpine/APKBUILD
fi