mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Cleanup
This commit is contained in:
parent
4c6786e8af
commit
55963bef23
1 changed files with 3 additions and 17 deletions
|
@ -300,8 +300,8 @@ class SystemuserAppResource(AppResource):
|
||||||
priority = 20
|
priority = 20
|
||||||
|
|
||||||
default_properties = {
|
default_properties = {
|
||||||
"allow_ssh": [],
|
"allow_ssh": False,
|
||||||
"allow_sftp": []
|
"allow_sftp": False
|
||||||
}
|
}
|
||||||
|
|
||||||
def provision_or_update(self, context: Dict):
|
def provision_or_update(self, context: Dict):
|
||||||
|
@ -494,11 +494,6 @@ class DatadirAppResource(AppResource):
|
||||||
# "main": {"url": "?", "sha256sum": "?", "predownload": True}
|
# "main": {"url": "?", "sha256sum": "?", "predownload": True}
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# def validate_availability(self, context):
|
|
||||||
# # ? FIXME
|
|
||||||
# # call request.head on the url idk
|
|
||||||
# pass
|
|
||||||
#
|
|
||||||
# def provision_or_update(self, context: Dict):
|
# def provision_or_update(self, context: Dict):
|
||||||
# # FIXME
|
# # FIXME
|
||||||
# return
|
# return
|
||||||
|
@ -528,11 +523,6 @@ class AptDependenciesAppResource(AppResource):
|
||||||
"extras": {}
|
"extras": {}
|
||||||
}
|
}
|
||||||
|
|
||||||
def validate_availability(self, context):
|
|
||||||
# ? FIXME
|
|
||||||
# call helpers idk ...
|
|
||||||
pass
|
|
||||||
|
|
||||||
def provision_or_update(self, context: Dict):
|
def provision_or_update(self, context: Dict):
|
||||||
|
|
||||||
# FIXME : implement 'extras' management
|
# FIXME : implement 'extras' management
|
||||||
|
@ -568,6 +558,7 @@ class PortResource(AppResource):
|
||||||
default_properties = {
|
default_properties = {
|
||||||
"default": 1000,
|
"default": 1000,
|
||||||
"expose": False, # FIXME : implement logic for exposed port (allow/disallow in firewall ?)
|
"expose": False, # FIXME : implement logic for exposed port (allow/disallow in firewall ?)
|
||||||
|
# "protocol": "tcp",
|
||||||
}
|
}
|
||||||
|
|
||||||
def _port_is_used(self, port):
|
def _port_is_used(self, port):
|
||||||
|
@ -617,11 +608,6 @@ class PortResource(AppResource):
|
||||||
# "type": "mysql"
|
# "type": "mysql"
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# def validate_availability(self, context):
|
|
||||||
# # FIXME : checking availability sort of imply that mysql / postgresql is installed
|
|
||||||
# # or we gotta make sure mariadb-server or postgresql is gonna be installed (apt resource)
|
|
||||||
# pass
|
|
||||||
#
|
|
||||||
# def provision_or_update(self, context: str):
|
# def provision_or_update(self, context: str):
|
||||||
# raise NotImplementedError()
|
# raise NotImplementedError()
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue