Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stustanet/wiki-scripts
https://github.com/stustanet/wiki-scripts
mediawiki mediawiki-api mediawiki-bot mediawiki-installation upgrade
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stustanet/wiki-scripts
- Owner: stustanet
- Created: 2018-07-02T12:32:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-07T11:35:53.000Z (about 1 year ago)
- Last Synced: 2024-10-10T18:43:07.176Z (26 days ago)
- Topics: mediawiki, mediawiki-api, mediawiki-bot, mediawiki-installation, upgrade
- Language: Python
- Homepage: https://gitlab.stusta.de/stustanet/wiki-scripts
- Size: 257 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wiki Scripts
A collection of scripts enhancing our Mediawiki setup.
## Announce
Relays news entries to the announce mailing list.
To be run with minimal privileges shortly after every full hour.## Mensa
Updates a wiki page with today's menu in the university canteens.## MVG Live
Updates a wiki page with the current departure times of the Studentenstadt Metro station.*Disabled, as it bloats the database*
## SSS (Sprechstundensystemschleuder)
Updates a wiki page with the next office hour dates.## Upgrade
Helper script to perform the steps required for an upgrade automatically:
* Check if upgrades (minor/major release) for Mediawiki or one of the extensions (supports composer and git) are available
* File backups via [bup](https://github.com/bup/bup)
* Database backups via mysqldump
* Pull updates
* Run `update.php` (Mediawiki maintenance script)
* Perform test request`upgrade.sh` is a simple wrapper for runs via timers/cronjobs, sending mail reports.
The upgrade script should be run as an unprivileged user but requires the ability to restart the PHP-FPM service. Thus sudo and a whitelisting for the required commands should be confgiured:
```sh
$ visudo# insert:
www-data ALL=(root) NOPASSWD: /bin/systemctl stop php7.0-fpm.service
www-data ALL=(root) NOPASSWD: /bin/systemctl start php7.0-fpm.service
www-data ALL=(root) NOPASSWD: /bin/systemctl reload php7.0-fpm.service
```