Make sure the script exits if there is an error to avoid publishing broken images. As a temporary fix, change submodule update --init to depth 10 because the submodule might be at a commit not present in the shallow clone. Bug: T237310 Change-Id: Id05f487798b1c74550c802be886f5a770f431d43
18 lines
499 B
Bash
Executable file
18 lines
499 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
mkdir -p /tmp/php
|
|
mkdir -p extensions
|
|
|
|
git clone --depth 1 https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor.git /var/www/html/extensions/VisualEditor
|
|
git clone --depth 1 https://gerrit.wikimedia.org/r/mediawiki/skins/Vector /var/www/html/skins/Vector
|
|
cd /var/www/html/extensions/VisualEditor
|
|
git submodule update --depth 10 --init
|
|
|
|
cd /var/www/html
|
|
composer install
|
|
cat <<PHP > LocalSettings.php
|
|
<?php
|
|
require_once '/var/config/LocalSettings.php';
|
|
PHP
|