Add Tweeki skin as option.

This commit is contained in:
Flancian 2023-05-15 01:10:00 +02:00
parent a931c54b31
commit 7ca11b8bc9
3 changed files with 23 additions and 2 deletions

View File

@ -118,13 +118,20 @@ $wgGroupPermissions['*']['read'] = true;
## Default skin: you can change the default skin. Use the internal symbolic ## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook': ## names, ie 'vector', 'monobook':
{{ if eq (env "TWEEKI_ENABLED") "1" }}
wfLoadSkin( 'Tweeki' );
$wgDefaultSkin = "tweeki";
{{ else }}
$wgDefaultSkin = "vector"; $wgDefaultSkin = "vector";
{{ end }}
# Enabled skins. # Enabled skins.
# The following skins were automatically enabled: # The following skins were automatically enabled:
wfLoadSkin( 'MonoBook' ); wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' ); wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' ); wfLoadSkin( 'Vector' );
wfLoadSkin( 'MinervaNeue' );
# Enabled extensions. Most of the extensions are enabled by adding # Enabled extensions. Most of the extensions are enabled by adding
# wfLoadExtensions('ExtensionName'); # wfLoadExtensions('ExtensionName');

View File

@ -1,6 +1,6 @@
export LOCAL_SETTINGS_CONF_VERSION=v12 export LOCAL_SETTINGS_CONF_VERSION=v16
export HTACCESS_CONF_VERSION=v1 export HTACCESS_CONF_VERSION=v1
export ENTRYPOINT_CONF_VERSION=v11 export ENTRYPOINT_CONF_VERSION=v15
export COMPOSER_LOCAL_CONF_VERSION=v5 export COMPOSER_LOCAL_CONF_VERSION=v5
export PHP_INI_VERSION=v2 export PHP_INI_VERSION=v2

View File

@ -109,10 +109,24 @@ init_extensions() {
} }
init_skins() {
if [ -n "${TWEEKI_ENABLED-}" ]; then
if [ ! -d /var/www/html/skins/Tweeki ]; then
git clone --depth 1 \
https://github.com/thaider/Tweeki \
/var/www/html/skins/Tweeki
fi
fi
}
main() { main() {
set -eu set -eu
init_extensions init_extensions
init_skins
init_composer init_composer
composer_install composer_install
init_db init_db