Add manifest.json patch
This commit is contained in:
parent
22ebfd1e10
commit
43bcf57bb4
@ -7,7 +7,7 @@ COPY ./build /tmp
|
|||||||
RUN apt update && apt install --yes wget gpg \
|
RUN apt update && apt install --yes wget gpg \
|
||||||
&& wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg \
|
&& wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg \
|
||||||
&& echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | tee /etc/apt/sources.list.d/elastic-8.x.list \
|
&& echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | tee /etc/apt/sources.list.d/elastic-8.x.list \
|
||||||
&& apt update && apt install elasticsearch
|
&& apt update && apt install --yes elasticsearch
|
||||||
|
|
||||||
# download extensions
|
# download extensions
|
||||||
RUN apt install wget \
|
RUN apt install wget \
|
||||||
@ -25,5 +25,6 @@ RUN find /tmp/mediawiki_extensions -name "*.tar.gz" -exec sh -c 'tar -xzf {} -C
|
|||||||
&& find /tmp/mediawiki_skins -name "*.tar.gz" -exec sh -c 'tar -xzf {} -C /var/www/html/skins' \; \
|
&& find /tmp/mediawiki_skins -name "*.tar.gz" -exec sh -c 'tar -xzf {} -C /var/www/html/skins' \; \
|
||||||
&& find /tmp/mediawiki_override -type f -exec php /tmp/scripts/config_placeholder_replace.php "/tmp/config.json" "{}" \; \
|
&& find /tmp/mediawiki_override -type f -exec php /tmp/scripts/config_placeholder_replace.php "/tmp/config.json" "{}" \; \
|
||||||
&& cp -R /tmp/mediawiki_override/* /var/www/html \
|
&& cp -R /tmp/mediawiki_override/* /var/www/html \
|
||||||
&& chown www-data:www-data /var/www/html/extensions/ -R \
|
&& chown www-data:www-data /var/www/html -R \
|
||||||
|
&& /tmp/scripts/mediawiki-ext-patch.sh \
|
||||||
&& rm -R /tmp/*
|
&& rm -R /tmp/*
|
||||||
|
@ -217,7 +217,7 @@ $wgMSU_useMsLinks = false;
|
|||||||
$wgShowExceptionDetails = true;
|
$wgShowExceptionDetails = true;
|
||||||
|
|
||||||
// Custom URL protocols
|
// Custom URL protocols
|
||||||
$wgUrlProtocols[] = "grid://";
|
//$wgUrlProtocols[] = "grid://";
|
||||||
|
|
||||||
// Shared memory settings
|
// Shared memory settings
|
||||||
$wgMainCacheType = CACHE_ACCEL; // CACHE_NONE
|
$wgMainCacheType = CACHE_ACCEL; // CACHE_NONE
|
||||||
|
10
build/scripts/mediawiki-ext-patch.sh
Executable file
10
build/scripts/mediawiki-ext-patch.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# MobileFrontend - fix manifest
|
||||||
|
sed -i '/MFStopMobileRedirectCookieSecureValue/c\
|
||||||
|
"MFManifestDisplay": {\
|
||||||
|
"value": "standalone"\
|
||||||
|
},\
|
||||||
|
"MFStopMobileRedirectCookieSecureValue": {' /var/www/html/extensions/MobileFrontend/extension.json \
|
||||||
|
|
||||||
|
sed -i 's/$resultObj->addValue( null, 'display', 'minimal-ui' );/$resultObj->addValue( null, 'display', $config->get( 'MFManifestDisplay' ) );/' /var/www/html/extensions/MobileFrontend/includes/Api/ApiWebappManifest.php
|
Reference in New Issue
Block a user