Fixed Vagrantfile to match user/group changes made for Travis CI.
@@ -49,16 +49,13 @@ Vagrant.configure(2) do |config|
# Create backrest user and postgres group
echo 'Create Postgres Group & pgBackRest User' && date
groupadd -g5000 postgres
- adduser --uid=5001 --ingroup=postgres --disabled-password --gecos "" backrest
-
- # Make postgres the primary group for vagrant user (and preserve vagrant group)
- echo 'Add Vagrant User to Postgres Group' && date
- usermod -g postgres vagrant
- usermod -a -G vagrant vagrant
+ adduser --uid=5001 --ingroup=vagrant --disabled-password --gecos "" backrest
# Build VM images
echo 'Build VM Images' && date
- rm -f /backrest/test/.vagrant/docker/*
+ rm -rf /backrest/test/.vagrant/docker/*
+ rm -rf /backrest/test/.vagrant/libc/*
+ rm -rf /backrest/test/.vagrant/package/*
sudo su - vagrant -c '/backrest/test/test.pl --vm-build'
echo 'Build End' && date
