diff options
author | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-05-15 11:07:55 +0900 |
---|---|---|
committer | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-05-15 11:18:28 +0900 |
commit | dec67cc9a39eee9f220411fd61ba20df6b6466e8 (patch) | |
tree | 8050f60c40360198c980d0dce3003107c813a53a /scripts/build-vagrant-libvirt-box | |
parent | a83e5139eda1d4f2cb77f9b06da42f84aa5d7fc0 (diff) | |
download | vyos-build-dec67cc9a39eee9f220411fd61ba20df6b6466e8.tar.gz vyos-build-dec67cc9a39eee9f220411fd61ba20df6b6466e8.zip |
Fix version number for vagrant libvirt box
Diffstat (limited to 'scripts/build-vagrant-libvirt-box')
-rwxr-xr-x | scripts/build-vagrant-libvirt-box | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build-vagrant-libvirt-box b/scripts/build-vagrant-libvirt-box index 070b3ef..4d3482d 100755 --- a/scripts/build-vagrant-libvirt-box +++ b/scripts/build-vagrant-libvirt-box @@ -54,8 +54,9 @@ fi PROVIDER=libvirt # Create version -date=$(date -u +%Y%m%d) -version=$(echo "$date.0.0") +major=$(cat build/version | cut -d'+' -f2 | rev | cut -c 5- | rev) +sub=$(cat build/version | cut -d'+' -f2 | rev | cut -c 1-4 | rev) +version=$(echo "$major.$sub.0") curl -XPOST -d "version[version]=${version}" \ https://app.vagrantup.com/api/v1/box/${VAGRANT_BOX_NAME}/versions?access_token=${VAGRANT_CLOUD_ACCESS_TOKEN} echo |