Module: kamailio
Branch: master
Commit: d63d33bbd0883cffc5d6e34a336331697ce13005
URL:
https://github.com/kamailio/kamailio/commit/d63d33bbd0883cffc5d6e34a3363316…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2017-10-24T14:32:17-04:00
pkg/kamailio/alpine_docker: Added support ssh git repo url
---
Modified: pkg/kamailio/alpine_docker/build.sh
---
Diff:
https://github.com/kamailio/kamailio/commit/d63d33bbd0883cffc5d6e34a3363316…
Patch:
https://github.com/kamailio/kamailio/commit/d63d33bbd0883cffc5d6e34a3363316…
---
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