mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add 'yunohost tools versions' to have a simple way to fetch version from the webadmin
This commit is contained in:
parent
1e6da91c78
commit
bf291a0c50
2 changed files with 8 additions and 1 deletions
|
@ -1459,6 +1459,11 @@ tools:
|
||||||
help: List pending configuration files and exit
|
help: List pending configuration files and exit
|
||||||
action: store_true
|
action: store_true
|
||||||
|
|
||||||
|
### tools_versions()
|
||||||
|
versions:
|
||||||
|
action_help: Display YunoHost's packages versions
|
||||||
|
api: GET /versions
|
||||||
|
|
||||||
subcategories:
|
subcategories:
|
||||||
|
|
||||||
migrations:
|
migrations:
|
||||||
|
|
|
@ -43,7 +43,7 @@ from yunohost.dyndns import _dyndns_available, _dyndns_provides
|
||||||
from yunohost.firewall import firewall_upnp
|
from yunohost.firewall import firewall_upnp
|
||||||
from yunohost.service import service_start, service_enable
|
from yunohost.service import service_start, service_enable
|
||||||
from yunohost.regenconf import regen_conf
|
from yunohost.regenconf import regen_conf
|
||||||
from yunohost.utils.packages import _dump_sources_list, _list_upgradable_apt_packages
|
from yunohost.utils.packages import _dump_sources_list, _list_upgradable_apt_packages, ynh_packages_version
|
||||||
from yunohost.utils.error import YunohostError
|
from yunohost.utils.error import YunohostError
|
||||||
from yunohost.log import is_unit_operation, OperationLogger
|
from yunohost.log import is_unit_operation, OperationLogger
|
||||||
|
|
||||||
|
@ -53,6 +53,8 @@ MIGRATIONS_STATE_PATH = "/etc/yunohost/migrations.yaml"
|
||||||
|
|
||||||
logger = getActionLogger('yunohost.tools')
|
logger = getActionLogger('yunohost.tools')
|
||||||
|
|
||||||
|
def tools_versions():
|
||||||
|
return ynh_packages_version()
|
||||||
|
|
||||||
def tools_ldapinit():
|
def tools_ldapinit():
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue