Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit d87e98c

Browse files
committed
Ensuring file permissions are properly set for /var/www when filesharing is off.
1 parent dbbf1c2 commit d87e98c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

manifests/base.pp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
require => Class['webadmin'],
2424
}
2525

26+
# If the folder is mounted via NFS we can't change the perms anyway,
27+
# but if it is not we want to make it owned by the `vagrant`.
28+
if (!$vagrant_share_www) {
29+
file { '/var/www':
30+
owner => $user,
31+
group => $group,
32+
require => Class['drupal_php'],
33+
}
34+
}
35+
2636
file { '/etc/apache2/sites-available':
2737
owner => $user,
2838
group => $group,

0 commit comments

Comments
 (0)