Report using supervisorctl as a warning

This commit is contained in:
Alexandre Aubin 2024-05-18 17:35:56 +02:00
parent 6da772f7fd
commit 32fb8d4049

View file

@ -808,6 +808,11 @@ class App(TestSuite):
if os.system("grep -I -qr 'REPLACEBYYOURAPP' %s 2>/dev/null" % self.path) == 0: if os.system("grep -I -qr 'REPLACEBYYOURAPP' %s 2>/dev/null" % self.path) == 0:
yield Error("You should replace all occurences of REPLACEBYYOURAPP.") yield Error("You should replace all occurences of REPLACEBYYOURAPP.")
@test()
def supervisor_usage(self):
if os.system("grep -I -qr '^\s*supervisorctl' %s 2>/dev/null" % self.path) == 0:
yield Warning("Please don't rely on supervisor to run services. YunoHost is about standardization and the standard is to use systemd units...")
@test() @test()
def bad_encoding(self): def bad_encoding(self):