MediaWiki-Docker/Extension/SecurePoll
Follow Quickstart intructions at MediaWiki-Docker page. Once MediaWiki is running and available at http://localhost:8080
, then:
cd mediawiki
or wherever your MediaWiki core repository is.
git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/SecurePoll" extensions/SecurePoll
echo "wfLoadExtension( 'SecurePoll' );" >> LocalSettings.php
echo "\$wgGroupPermissions['electcomm']['securepoll-create-poll'] = true;" >> LocalSettings.php
echo "\$wgGroupPermissions['electcomm']['editinterface'] = true;" >> LocalSettings.php
echo "\$wgAddGroups['electcomm'] = [ 'electionadmin' ];" >> LocalSettings.php
echo "\$wgGroupPermissions['electionadmin']['editinterface'] = true;" >> LocalSettings.php
docker compose exec mediawiki php maintenance/run.php update.php
You will then need to go to http://localhost:8080/wiki/Special:UserRights/Admin and give yourself the electcomm
and electionadmin
user rights.