File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ RUN echo '<?php $settings["project_env"] = PROD_ENV; ' > /opt/drupal/web/sites/d
43
43
# Adding syn directory.
44
44
mkdir -p config/sync; \
45
45
# Adjusting ownership
46
- chown -R www-data:www-data /opt/drupal/private /opt/drupal/files /opt/drupal/config/sync
46
+ chown -R www-data:www-data /opt/drupal/private /opt/drupal/files /opt/drupal/config/sync; \
47
+ chmod g+s -R /opt/drupal/private /opt/drupal/files /opt/drupal/config/sync
47
48
48
49
COPY settings/prod.settings.php /opt/drupal/web/sites/default/
49
50
COPY entrypoint.sh /
Original file line number Diff line number Diff line change 19
19
echo " Deployment skipped"
20
20
fi ;
21
21
22
+ # Making sure that all files belong apache web server user.
23
+ chown -R www-data:www-data /opt/drupal/private /opt/drupal/files /opt/drupal/config/sync
24
+ chmod g+s /opt/drupal/private /opt/drupal/files /opt/drupal/config/sync
25
+
22
26
# Starting cron service.
23
27
service cron start
24
28
You can’t perform that action at this time.
0 commit comments