This repository contains a few scripts useful when running/managing a pagure instance.
License: GPLv2 or any later version
To run the script, either you have a configuration file at
/etc/pagure/pagure.cfg and it will use it, or you can specify one using the
PAGURE_CONFIG when calling the script.
In other words:
if you have
/etc/pagure/pagure.cfg, call the script directly:
if you want to specify the configuration file, use
PAGURE_CONFIG=/path/to/pagure.cfg python <script>.py
This script can be used to delete all the projects of a specific user.
This script takes all the tickets, pull-requests and their comments and insert a corresponding entry in the pagure_logs table (available from 2.9).
This script browses all the git repo in the specified directory, and for each commits insert a corresponding entry in the pagure_logs table (available from 2.9).
This is an example script browses all the git repo in the specified directory, and creating the corresponding project in the database with the specified (hard-coded) namespace and main admin.
This script allows regenerating the CHECKSUMS file of the specified directory of releases. (Available from 3.9)
This script queries all the projects stored in the DB and the files present on disk and report any discrepancies with the possibility to fix them automatically.