1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00

Merge branch 'sync' into 'master'

Add sync to make sure buildserverid is written

See merge request fdroid/fdroidserver!735
This commit is contained in:
Michael Pöhn 2020-04-13 20:21:05 +00:00
commit 57446eee1c

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))