Skip to content
Snippets Groups Projects
Commit a151cea7 authored by Konstantinos Samaras-Tsakiris's avatar Konstantinos Samaras-Tsakiris
Browse files

Merge branch 'site-install-idempotent' into 'master'

Site install to Ensure install

See merge request !20
parents 632f6dee aa48e77f
No related branches found
No related tags found
1 merge request!20Site install to Ensure install
Pipeline #2990894 passed
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment