mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
mediawiki: Use drop-in config component for /etc files
- Don't ship /etc/mediawiki/FreedomBoxSettings.php anymore. Create the file on first setup. Keep old file on update. - Simplify and unify how the configuration settings are read and written. Tests: - Run unit and functional tests. - All the drop-in config files in /etc/ are symlinks. - Shipped configuration is effective. - Upgrade from older version keeps old configuration. - Config files are all symlinks in /etc/ - When upgrading from older version FreedomBoxSettings.php does not change. FreedomBoxStaticSettings.php becomes a symlink. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
c326b35238
commit
cd512bd24c
8 files changed
+106
-174
No files matched your search
@@ -1,26 +0,0 @@
|
||||
<?php
|
||||
|
||||
# Default logo
|
||||
$wgLogo = "$wgResourceBasePath/resources/assets/mediawiki.png";
|
||||
|
||||
# Enable file uploads
|
||||
$wgEnableUploads = true;
|
||||
|
||||
# Public registrations
|
||||
$wgGroupPermissions['*']['createaccount'] = false;
|
||||
|
||||
# Read/write permissions for anonymous users
|
||||
$wgGroupPermissions['*']['edit'] = false;
|
||||
$wgGroupPermissions['*']['read'] = true;
|
||||
|
||||
# Short urls
|
||||
$wgArticlePath = "/mediawiki/$1";
|
||||
$wgUsePathInfo = true;
|
||||
|
||||
# Instant Commons
|
||||
$wgUseInstantCommons = true;
|
||||
|
||||
# SVG Enablement
|
||||
$wgFileExtensions[] = 'svg';
|
||||
$wgAllowTitlesInSVG = true;
|
||||
$wgSVGConverter = 'ImageMagick';
|
||||
File renamed without changes.
+2
-3
@@ -3,9 +3,8 @@
|
||||
This file is shipped by FreedomBox to manage static settings. Newer versions of
|
||||
this file are shipped by FreedomBox and are expected to override this file
|
||||
without any user prompts. It should not be modified by the system
|
||||
administrator. Additional setting modified by FreedomBox at placed in
|
||||
FreedomBoxSettings.php. No newer version of that file is ever shipped by
|
||||
FreedomBox.
|
||||
administrator. Additional setting modified by FreedomBox are placed in
|
||||
FreedomBoxSettings.php.
|
||||
*/
|
||||
|
||||
# Default logo
|
||||
Reference in new issue
Block a user