summaryrefslogtreecommitdiff
path: root/pkg.sh
blob: ad283c3326055f1c2a206eb4923efa5e1eae4e1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -e -x

KEAMA_VERSION=$1

#DISTROS="debian-10 ubuntu-18.04 ubuntu-20.04 fedora-32 centos-7 centos-8"
DISTROS="debian-10 ubuntu-18.04 ubuntu-20.04 centos-7"

for d in $DISTROS; do
    export DISTRO=$d
    vagrant destroy -f || true
    vagrant up
    vagrant ssh -- /vagrant/vagrant-pkg.sh $KEAMA_VERSION
    vagrant destroy -f
    rm -rf $DISTRO
    mkdir $DISTRO
    mv keama/isc-dhcp-keama* $DISTRO/
done