Skip to content
Snippets Groups Projects
Commit aa48e77f authored by Francisco Borges Aurindo Barros's avatar Francisco Borges Aurindo Barros
Browse files

Site install to Ensure install

parent 632f6dee
Branches
Tags
1 merge request!20Site install to Ensure install
Pipeline #2941812 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