You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-05-22 10:15:16 +02:00
Try tweaking time sync settings to prevent clock drift rather than restarting VBoxService on every test run.
This commit is contained in:
Vendored
+5
-3
@@ -40,10 +40,12 @@ Vagrant.configure(2) do |config|
|
||||
echo 'supersede domain-name-servers 8.8.8.8;' >> /etc/dhcp/dhclient.conf
|
||||
/etc/init.d/networking restart
|
||||
|
||||
# If builds fail with 'modification time in the future', the following command will sync the vm clock with the host
|
||||
# Set time sync settings so builds don't fail with clock drift errors
|
||||
#---------------------------------------------------------------------------------------------------------------------------
|
||||
echo 'Start Time Sync Service' && date
|
||||
sudo /usr/sbin/VBoxService --timesync-set-start
|
||||
echo 'Time Sync Settings' && date
|
||||
/etc/init.d/virtualbox-guest-utils stop
|
||||
/usr/sbin/VBoxService --timesync-set-on-restore 1 --timesync-interval 5000 --timesync-set-threshold 1
|
||||
/etc/init.d/virtualbox-guest-utils start
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------------
|
||||
echo 'Install Perl Modules' && date
|
||||
|
||||
Reference in New Issue
Block a user