summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-07-03 10:38:54 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-07-03 10:38:54 +0200
commit227488c9e369d5d565e8e6a860269459c15da492 (patch)
tree73ea68ad74cd4b2e307dd94b8517a1d92eb45227
parent8a9429e790bba57907501c5485d615677165ffba (diff)
downloadturris-mymedkit-227488c9e369d5d565e8e6a860269459c15da492.tar.gz
turris-mymedkit-227488c9e369d5d565e8e6a860269459c15da492.tar.bz2
turris-mymedkit-227488c9e369d5d565e8e6a860269459c15da492.zip
Get turris version from packages list not from root
When we don't generate medkit than we don't have root and so we can't use it anymore.
-rwxr-xr-xbuild_medkit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_medkit.sh b/build_medkit.sh
index 581c1f7..56c03a0 100755
--- a/build_medkit.sh
+++ b/build_medkit.sh
@@ -40,7 +40,7 @@ done
# Get latest version if we didn't stated version explicitly
if [ -z "$VERSION" ]; then
[ -n "$BRANCH" ] && VBRANCH="-$BRANCH"
- VERSION="$(curl https://repo.turris.cz/$MODEL$VBRANCH/root/etc/turris-version)"
+ VERSION="$(curl https://repo.turris.cz/omnia-dev-karel/packages/base/Packages | sed -n 's/^Filename: turris-version_\([^_]*\)_.*/\1/p')"
fi
# Ensure that we have tools