mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report using /opt/yunohost as install dir as a warning >_>
This commit is contained in:
parent
1d161411ce
commit
c6dcd98e7e
1 changed files with 9 additions and 0 deletions
|
@ -2099,6 +2099,15 @@ class Manifest(TestSuite):
|
||||||
"each time the upstream version changes."
|
"each time the upstream version changes."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@test()
|
||||||
|
def custom_install_dir(self):
|
||||||
|
custom_install_dir = self.manifest.get("resources", {}).get("install_dir", {}).get("dir")
|
||||||
|
if not custom_install_dir:
|
||||||
|
return
|
||||||
|
|
||||||
|
if custom_install_dir.startswith("/opt/yunohost"):
|
||||||
|
yield Warning("Installing apps in /opt/yunohost is deprecated ... YunoHost is about standardization, and the standard is to install in /var/www/__APP__ (yes, even if not a webapp, because whatever). Please stick to the default value. the resource system should automatically move the install dir if needed so you don't really need to think about backward compatibility.")
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def install_args(self):
|
def install_args(self):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue