GUI editor to tame mod_security rules

⌈⌋ ⎇ branch:  modseccfg


Artifact [6218a7596a]

Artifact 6218a7596ab07d1fc76838164a60f92ca0289d71fb6d462195aca358c9b45c52:

  • Executable file logfmt1/update_logfmt.py — part of check-in [270a3a0f72] at 2020-12-18 10:47:48 on branch trunk — Add "type": classifiers for some logfmt fields. Support $1$2$3 for expand id= and value= fields. (user: mario size: 429)

#!/usr/bin/env python3
# encoding: utf-8
# title: update-logfmt
# description: invoke …/logfmt/share/update/* scripts
# type: virtual
#
# global *.log.fmt update run-parts


import os, re, sys

def main():
    pass

for dir in ["/usr/share/logfmt/update", re.sub("[.\w]+$", "share/update", __file__)]:
    if os.path.exists(dir):
        argv = " ".join(sys.argv[1:])
        os.system(f"run-parts {argv} {dir}")
        break