mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 11:00:10 +01:00
14 lines
349 B
Bash
Executable File
14 lines
349 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
rm -f buildserver.box
|
|
cd buildserver
|
|
vagrant up
|
|
sleep 5
|
|
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
|
|
|