diff --git a/install.sh b/install.sh index 2cf59b6..79101c0 100644 --- a/install.sh +++ b/install.sh @@ -1,3 +1,3 @@ #!/bin/ash -docker build -t lixonet-ee . && docker run -d -v /etc/bird:/etc/bird/ -v /etc/tinc:/etc/tinc -v /etc/bind:/etc/bind -v /etc/lixonet:/etc/lixonet lixonet-ee \ No newline at end of file +docker build -t lixonet-ee . && docker run -d -e GIT_URL=https://$1:$2@github.com/Manevolent/lixonet-ee.git -v /etc/bird:/etc/bird/ -v /etc/tinc:/etc/tinc -v /etc/bind:/etc/bind -v /etc/lixonet:/etc/lixonet lixonet-ee \ No newline at end of file diff --git a/run.sh b/run.sh index 1c352c2..8683d63 100644 --- a/run.sh +++ b/run.sh @@ -6,7 +6,7 @@ do ( set -e current_version=`cat $version_file || echo 0` - git fetch + git fetch $GIT_URL latest_commit=`git log "--format=%G? %H" | grep ^G | head -n 1 | cut -d' ' -f2` git checkout $latest_commit checkout_version=`cat version`