1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00

Add sync to make sure buildserverid is written

This commit is contained in:
Jochen Sprickerhof 2020-04-11 23:53:37 +02:00
parent e1a67515e4
commit af4eb86fca

View File

@ -674,7 +674,8 @@ def main():
universal_newlines=True)
buildserverid = p.communicate()[0].strip()
logging.info("Writing buildserver ID ...ID is %s", buildserverid)
write_bsid_cmd = 'sh -c "echo \'{}\' >/home/vagrant/buildserverid"'.format(buildserverid)
# sync data before we halt() the machine, we had an empty buildserverid otherwise
write_bsid_cmd = 'sh -c "echo \'{}\' >/home/vagrant/buildserverid; sync"'.format(buildserverid)
run_via_vagrant_ssh(v, write_bsid_cmd)
logging.debug("+ {}".format(write_bsid_cmd))