diff --git a/Dockerfile b/Dockerfile index de23b1ff..3ab65938 100644 --- a/Dockerfile +++ b/Dockerfile @@ -661,16 +661,16 @@ RUN set -x; \ cd $MW_HOME \ && find . \( -name ".git" -o -name ".gitignore" -o -name ".gitmodules" -o -name ".gitattributes" \) -exec rm -rf -- {} + -# Generate list of installed extensions +# Generate sample files for installing extensions and skins in LocalSettings.php RUN set -x; \ cd $MW_HOME/extensions \ - && for i in $(ls -d */); do echo "#cfLoadExtension('${i%%/}');"; done > $MW_ORIGIN_FILES/installedExtensions.txt \ - # Dirty hack for SemanticMediawiki - && sed -i "s/#cfLoadExtension('SemanticMediaWiki');/#enableSemantics('localhost');/g" $MW_ORIGIN_FILES/installedExtensions.txt \ + && for i in $(ls -d */); do echo "#wfLoadExtension('${i%%/}');"; done > $MW_ORIGIN_FILES/installedExtensions.txt \ + # Dirty hack for Semantic MediaWiki + && sed -i "s/#wfLoadExtension('SemanticMediaWiki');/#enableSemantics('localhost');/g" $MW_ORIGIN_FILES/installedExtensions.txt \ && cd $MW_HOME/skins \ - && for i in $(ls -d */); do echo "#cfLoadSkin('${i%%/}');"; done > $MW_ORIGIN_FILES/installedSkins.txt \ - #Loads Vector skin by default in the LocalSettings.php - && sed -i "s/#cfLoadSkin('Vector');/cfLoadSkin('Vector');/" $MW_ORIGIN_FILES/installedSkins.txt + && for i in $(ls -d */); do echo "#wfLoadSkin('${i%%/}');"; done > $MW_ORIGIN_FILES/installedSkins.txt \ + # Load Vector skin by default in the sample file + && sed -i "s/#wfLoadSkin('Vector');/wfLoadSkin('Vector');/" $MW_ORIGIN_FILES/installedSkins.txt # Move files around RUN set -x; \