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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal
paas
cern-drupal-distribution
Commits
a09d34ce
There was an error fetching the commit references. Please try again later.
Commit
a09d34ce
authored
Sep 15, 2021
by
Dimitra Chatzichrysou
Browse files
Options
Downloads
Patches
Plain Diff
Add profile arg in ensure-site-install script
parent
154d8f9e
No related branches found
No related tags found
1 merge request
!22
Draft: Add profile arg in ensure-site-install script
Pipeline
#3019874
passed
Sep 15, 2021
Stage: nginx
Stage: sitebuilder
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
images/drupal-operations-scripts/ensure-site-install.sh
+20
-2
20 additions, 2 deletions
images/drupal-operations-scripts/ensure-site-install.sh
with
20 additions
and
2 deletions
images/drupal-operations-scripts/ensure-site-install.sh
+
20
−
2
View file @
a09d34ce
#!/bin/sh
#!/bin/sh
set
-exu
usage
()
{
echo
"Usage:
$0
--profile <cern|easystart>"
1>&2
;
exit
1
;
}
# Options
ARGS
=
$(
getopt
-o
'p:'
--long
'profile:'
--
"
$@
"
)
||
exit
1
eval
"set --
$ARGS
"
while
true
;
do
case
"
$1
"
in
(
-p
|
--profile
)
export
PROFILE
=
"
$2
"
;
shift
2
;;
(
--
)
shift
;
break
;;
(
*
)
usage
;;
esac
done
[[
-z
"
$PROFILE
"
]]
&&
usage
# We have a cookie to let the job know if it should run 'drush site-install ...'
# 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
# Details can be seen here: https://gitlab.cern.ch/webservices/webframeworks-planning/-/issues/484
...
@@ -18,7 +36,7 @@
...
@@ -18,7 +36,7 @@
# Install Drupal site
# Install Drupal site
echo
"Installing Drupal site"
echo
"Installing Drupal site"
drush site-install
cern
-y
--config-dir
=
../config/sync
--account-name
=
admin install_configure_form.enable_update_status_emails
=
NULL
-vvv
drush site-install
$PROFILE
-y
--config-dir
=
../config/sync
--account-name
=
admin install_configure_form.enable_update_status_emails
=
NULL
-vvv
# Remove admin account
# Remove admin account
drush user-cancel admin
-y
drush user-cancel admin
-y
drush cr
drush cr
...
...
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
sign in
to comment