initial commit

This commit is contained in:
root 2021-04-29 10:47:49 +02:00
commit 12ab7b062d
4 changed files with 39 additions and 0 deletions

10
base/install-drupal.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
cd /opt/drupal
set -eux
export COMPOSER_HOME="$(mktemp -d)"
DRUPAL_VERSION="9.1.5"
composer create-project --no-interaction "drupal/recommended-project:$DRUPAL_VERSION" ./
chown -R www-data:www-data web/sites web/modules web/themes
rmdir /var/www/html
ln -sf /opt/drupal/web /var/www/htm
rm -rf "$COMPOSER_HOME"