Skip to content

Commit 826a5dd

Browse files
committed
Back synced_folder type to rsync
1 parent bc8ecf1 commit 826a5dd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Vagrantfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Vagrant.configure("2") do |config|
2626

2727
# Same path set in the $CODEIGNITER_PATH Provision
2828
# "virtualbox" type allow auto-sync host to guest and guest to host
29-
config.vm.synced_folder ".", "/var/www/codeigniter", type: "virtualbox"
29+
# but chmod does not work... tests will fail.
30+
config.vm.synced_folder ".", "/var/www/codeigniter", type: "rsync"
3031

3132
# Provider-specific configuration
3233
config.vm.provider "virtualbox" do |vb|
@@ -84,7 +85,7 @@ Vagrant.configure("2") do |config|
8485
8586
sed -i "s/#listen_addresses = 'localhost'/listen_addresses = '*'/" /etc/postgresql/$POSTGRES_VERSION/main/postgresql.conf
8687
grep -q "host all all all md5" /etc/postgresql/$POSTGRES_VERSION/main/pg_hba.conf || echo "host all all all md5" >> /etc/postgresql/$POSTGRES_VERSION/main/pg_hba.conf
87-
sudo -u postgres psql -tc "SELECT 1 FROM pg_database WHERE datname = 'codeigniter';" | grep -q 1 || sudo -u postgres psql -c "CREATE DATABASE codeigniter;"
88+
sudo -u postgres psql -tc "SELECT 1 FROM pg_database WHERE datname = 'codeigniter';" | grep -q 1 || sudo -u postgres psql -c "CREATE DATABASE codeigniter;"
8889
sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '${POSTGRES_USER_PASS}';"
8990
systemctl restart postgresql
9091

0 commit comments

Comments
 (0)