[sr-dev] git:master:d581c007: Merge pull request #1280 from sergey-safarov/alpine

GitHub noreply at github.com
Wed Oct 25 12:03:32 CEST 2017


Module: kamailio
Branch: master
Commit: d581c007ac29aea2c70fbeecdcebda701c37aa37
URL: https://github.com/kamailio/kamailio/commit/d581c007ac29aea2c70fbeecdcebda701c37aa37

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at 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/d581c007ac29aea2c70fbeecdcebda701c37aa37.diff
Patch: https://github.com/kamailio/kamailio/commit/d581c007ac29aea2c70fbeecdcebda701c37aa37.patch

---

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 at 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




More information about the sr-dev mailing list