mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-12 10:04:14 +02:00
Fixed Vagrantfile to match user/group changes made for Travis CI.
This commit is contained in:
parent
8161ab1c50
commit
2c48cf8d0d
11
test/Vagrantfile
vendored
11
test/Vagrantfile
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user