mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
Add sync to make sure buildserverid is written
This commit is contained in:
parent
e1a67515e4
commit
af4eb86fca
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue