mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Add email services, use print_wrong function when service doesn't exist.
This commit is contained in:
parent
43dfdd29f4
commit
166ad9b7a8
1 changed files with 2 additions and 2 deletions
|
@ -78,11 +78,11 @@ def check_manifest(manifest):
|
||||||
if "multi_instance" in manifest and manifest["multi_instance"] != "true" and manifest["multi_instance"] != "false":
|
if "multi_instance" in manifest and manifest["multi_instance"] != "true" and manifest["multi_instance"] != "false":
|
||||||
print_wrong("multi_instance field must use 'true' or 'false' value.");
|
print_wrong("multi_instance field must use 'true' or 'false' value.");
|
||||||
if "services" in manifest:
|
if "services" in manifest:
|
||||||
services = ("nginx", "php5-fpm", "mysql", "uwsgi", "metronome")
|
services = ("nginx", "php5-fpm", "mysql", "uwsgi", "metronome", "postfix", "dovecot") #, "rspamd", "rmilter")
|
||||||
i = 0
|
i = 0
|
||||||
while (i < len(manifest["services"])):
|
while (i < len(manifest["services"])):
|
||||||
if manifest["services"][i] not in services:
|
if manifest["services"][i] not in services:
|
||||||
print(manifest["services"][i] + " service doesn't exist")
|
print_wrong(manifest["services"][i] + " service doesn't exist")
|
||||||
i+=1
|
i+=1
|
||||||
if "install" in manifest["arguments"]:
|
if "install" in manifest["arguments"]:
|
||||||
types = ("domain", "path", "password")
|
types = ("domain", "path", "password")
|
||||||
|
|
Loading…
Reference in a new issue