Add manifest.json patch

This commit is contained in:
Illya Marchenko 2024-04-25 14:43:50 +03:00
parent 22ebfd1e10
commit 43bcf57bb4
Signed by: stuzer05
GPG Key ID: A6ABAAA9268F9F4F
3 changed files with 14 additions and 3 deletions

View File

@ -7,7 +7,7 @@ COPY ./build /tmp
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 \
&& 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
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_override -type f -exec php /tmp/scripts/config_placeholder_replace.php "/tmp/config.json" "{}" \; \
&& 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/*

View File

@ -217,7 +217,7 @@ $wgMSU_useMsLinks = false;
$wgShowExceptionDetails = true;
// Custom URL protocols
$wgUrlProtocols[] = "grid://";
//$wgUrlProtocols[] = "grid://";
// Shared memory settings
$wgMainCacheType = CACHE_ACCEL; // CACHE_NONE

View 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