Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cern-drupal-distribution
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal
paas
cern-drupal-distribution
Commits
aa48e77f
Commit
aa48e77f
authored
3 years ago
by
Francisco Borges Aurindo Barros
Browse files
Options
Downloads
Patches
Plain Diff
Site install to Ensure install
parent
632f6dee
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!20
Site install to Ensure install
Pipeline
#2941812
passed
3 years ago
Stage: nginx
Stage: sitebuilder
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
images/drupal-operations-scripts/ensure-site-install.sh
+12
-0
12 additions, 0 deletions
images/drupal-operations-scripts/ensure-site-install.sh
with
12 additions
and
0 deletions
images/drupal-operations-scripts/site-install.sh
→
images/drupal-operations-scripts/
ensure-
site-install.sh
+
12
−
0
View file @
aa48e77f
#!/bin/sh
set
-exu
# We have a cookie to let the job know if it should run 'drush site-install ...'
# Details can be seen here: https://gitlab.cern.ch/webservices/webframeworks-planning/-/issues/484
INSTALL_COOKIE
=
/drupal-data/.site-installed
if
[
-f
"
${
INSTALL_COOKIE
}
"
]
;
then
echo
"
${
INSTALL_COOKIE
}
exists."
echo
"skipping installation..."
exit
0
fi
# Change working directory to the drupal code
cd
/app
...
...
@@ -16,3 +25,6 @@
if
[
"
$?
"
-ne
"0"
]
;
then
drush cr
fi
# Leave cookie
touch
$INSTALL_COOKIE
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment