Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.44 KB

File metadata and controls

51 lines (36 loc) · 1.44 KB

Bash shell scripts for usage of MediaWiki API

Download, upload changes to, and manage pages from MediaWiki wikis from the command line.

This tool may work on other wiki sites, but is primarily intended for management of the Kicksecure and Whonix wikis.

Setup

Create a credentials file in /usr/share/mediawiki-shell/credentials or ~/.mediawikishell_credentials with the following contents:

case "${WIKI_URL-}" in
  *".whonix."*)
    WIKI_API_USER_NAME='username'
    WIKI_API_USER_PASS='password'
    ;;
  *".kicksecure."*)
    WIKI_API_USER_NAME='username'
    WIKI_API_USER_PASS='password'
    ;;
esac
WIKI_API="$WIKI_URL/api.php"
WIKI_INDEX="$WIKI_URL/index.php"

If using a different wiki, add an entry to the case block.

How to Build deb Package from Source Code

Can be built using standard Debian package build tools such as:

dpkg-buildpackage -b

See instructions. (Replace generic-package with the actual name of this package: mediawiki-shell.)

Contact

Donate

mediawiki-shell requires donations to stay alive!