mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
packagingv2: deprecate the nginx reload at the end of scripts ... there just no need for it :|
This commit is contained in:
parent
2ad2188805
commit
b0cde49675
1 changed files with 8 additions and 1 deletions
|
@ -2493,7 +2493,7 @@ class Script(TestSuite):
|
||||||
)
|
)
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def ssowatconf(self):
|
def ssowatconf_or_nginx_reload(self):
|
||||||
# Dirty hack to check only the 10 last lines for ssowatconf
|
# Dirty hack to check only the 10 last lines for ssowatconf
|
||||||
# (the "bad" practice being using this at the very end of the script, but some apps legitimately need this in the middle of the script)
|
# (the "bad" practice being using this at the very end of the script, but some apps legitimately need this in the middle of the script)
|
||||||
oldlines = list(self.lines)
|
oldlines = list(self.lines)
|
||||||
|
@ -2502,6 +2502,13 @@ class Script(TestSuite):
|
||||||
yield Warning(
|
yield Warning(
|
||||||
"You probably don't need to run 'yunohost app ssowatconf' in the app self. It's supposed to be ran automatically after the script."
|
"You probably don't need to run 'yunohost app ssowatconf' in the app self. It's supposed to be ran automatically after the script."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if app_packaging_format >= 2 and self.name not in ["change_url", "restore"]:
|
||||||
|
if self.contains("ynh_systemd_action --service_name=nginx --action=reload"):
|
||||||
|
yield Warning(
|
||||||
|
"You should not need to reload nginx at the end of the script ... it's already taken care of by ynh_add_nginx_config"
|
||||||
|
)
|
||||||
|
|
||||||
self.lines = oldlines
|
self.lines = oldlines
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
|
|
Loading…
Reference in a new issue