1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 19:10:11 +01:00
fdroidserver/makebuildserver.sh

14 lines
349 B
Bash
Raw Normal View History

2012-02-21 01:01:07 +01:00
#!/bin/bash
2012-08-23 15:25:39 +02:00
set -e
2012-02-21 01:01:07 +01:00
rm -f buildserver.box
cd buildserver
vagrant up
sleep 5
2012-02-21 01:01:07 +01:00
vagrant ssh -c "sudo shutdown -h now"
cd ..
# Just to wait until it's shut down!
sleep 20
vagrant package --base `VBoxManage list vms | grep buildserver | sed 's/"\(.*\)".*/\1/'` --output buildserver.box
vagrant box add buildserver buildserver.box -f && rm buildserver.box