coldfrontlabs / coldfrontlabs-drupalsi

Drupal site install module for Puppet 8
GNU General Public License v2.0
0 stars 0 forks source link

Update permission script to handle drupal 8 sites #59

Open minorOffense opened 5 years ago

minorOffense commented 5 years ago
drwxr-xr-x.  8 cibuild apache    4096 Jan 11 20:26 web
-rw-rw-rw-.  1 cibuild cibuild 349168 Jan 11 20:26 composer.lock
drwxr-xr-x. 54 cibuild apache    4096 Jan 11 20:26 vendor
drwxr-xr-x.  2 cibuild apache    4096 Jan 11 20:26 bin
drwxrwxrwx.  8 cibuild root       126 Jan 11 20:25 .
-rw-rw-rw-.  1 cibuild cibuild   5076 Jan 11 20:10 composer.json
drwxrwxrwx.  4 cibuild apache      68 Jan 11 20:10 drush
drwxrwxrwx.  3 cibuild apache      18 Jan 11 18:54 config
drwxrwxrwx.  3 cibuild apache      22 Jan 11 18:54 scripts
drwxr-xr-x.  5 root    root        62 Jun 27  2018 ..

Drupal 8 has a folder outside the "web" folder where files are important to have the right permissions. Need to try to fix those too.

minorOffense commented 5 years ago
chown -R cibuild:apache config vendor bin drush
finalhow commented 5 years ago

NOTES: Modify script to change ownership on "config", "vendor", "bin", "drush" if they exist. Do not change modes.

finalhow commented 5 years ago

Make sure restorecon operates on those directories as well.