From 8ba4a25b8ba0523f9254fd51e92291ed4af977eb Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 9 Jan 2021 18:45:40 +0100 Subject: [PATCH] Report black magic with conf.json.persistent --- package_linter.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package_linter.py b/package_linter.py index 9c202e1..8620d50 100755 --- a/package_linter.py +++ b/package_linter.py @@ -556,6 +556,13 @@ class App(TestSuite): yield Warning("This app still has references to php5 (from the jessie era !!) which tends to indicate that it's not up to date with recent packaging practices.") + @test() + def conf_json_persistent_tweaking(self): + if os.system("grep -q -nr '/etc/ssowat/conf.json.persistent' %s/*/* 2>/dev/null" % self.path) == 0: + yield Error("Don't do black magic with /etc/ssowat/conf.json.persistent !") + + + class Configurations(TestSuite): def __init__(self, app):