File tree Expand file tree Collapse file tree 3 files changed +17
-19
lines changed Expand file tree Collapse file tree 3 files changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ RUN echo '<?php $settings["project_env"] = PROD_ENV; ' > /opt/drupal/web/sites/d
44
44
45
45
COPY settings/prod.settings.php /opt/drupal/web/sites/default/
46
46
COPY entrypoint.sh /
47
+ COPY install.sh /
47
48
48
49
# Adding cron tab
49
50
COPY crontab /etc/cron.d/drupal
Original file line number Diff line number Diff line change @@ -10,25 +10,7 @@ if [ "$PRINT_STATUS" = true ]; then
10
10
$DRUSH status
11
11
fi ;
12
12
13
- if [ " $INSTALL_OS2WEB " = true ]; then
14
- echo " Installing new OS2Web installation"
15
- export DRUSH=" drush --root=/opt/drupal"
16
- # Install drupal.
17
- $DRUSH sql-drop -y
18
- $DRUSH si os2web --account-pass=admin --locale=da -y
19
-
20
- # Enable theme.
21
- if [ -z " $OS2WEB_THEME " ]; then
22
- export OS2WEB_THEME=" fds_custom_theme"
23
- fi ;
24
- $DRUSH theme:enable $OS2WEB_THEME -y
25
- $DRUSH config-set system.theme default $OS2WEB_THEME -y
26
-
27
- # Enable modules.
28
- $DRUSH en -y os2web_pagebuilder os2web_spotbox
29
- else
30
- echo " Updating project files skipped"
31
- fi ;
13
+ source /install.sh
32
14
33
15
if [ " $DEPLOYMENT " = true ]; then
34
16
echo " Running deployment"
Original file line number Diff line number Diff line change
1
+ echo " Installing new OS2Web installation"
2
+ export DRUSH=" drush --root=/opt/drupal"
3
+ # Install drupal.
4
+ $DRUSH sql-drop -y
5
+ $DRUSH si os2web --account-pass=admin --locale=da -y
6
+
7
+ # Enable theme.
8
+ if [ -z " $OS2WEB_THEME " ]; then
9
+ export OS2WEB_THEME=" fds_custom_theme"
10
+ fi ;
11
+ $DRUSH theme:enable $OS2WEB_THEME -y
12
+ $DRUSH config-set system.theme default $OS2WEB_THEME -y
13
+
14
+ # Enable modules.
15
+ $DRUSH en -y os2web_pagebuilder os2web_spotbox
You can’t perform that action at this time.
0 commit comments