mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Make the warning spooky for notworking and thirdparty apps ...
This commit is contained in:
parent
c0e3d600b2
commit
a2ecbb9d8b
2 changed files with 17 additions and 6 deletions
|
@ -144,8 +144,8 @@
|
||||||
"certmanager_self_ca_conf_file_not_found": "Could not find configuration file for self-signing authority (file: {file:s})",
|
"certmanager_self_ca_conf_file_not_found": "Could not find configuration file for self-signing authority (file: {file:s})",
|
||||||
"certmanager_unable_to_parse_self_CA_name": "Could not parse name of self-signing authority (file: {file:s})",
|
"certmanager_unable_to_parse_self_CA_name": "Could not parse name of self-signing authority (file: {file:s})",
|
||||||
"confirm_app_install_warning": "Warning: This application may work, but is not well-integrated in YunoHost. Some features such as single sign-on and backup/restore might not be available. Install anyway? [{answers:s}] ",
|
"confirm_app_install_warning": "Warning: This application may work, but is not well-integrated in YunoHost. Some features such as single sign-on and backup/restore might not be available. Install anyway? [{answers:s}] ",
|
||||||
"confirm_app_install_danger": "WARNING! This application is still experimental (if not explicitly not working) and it is likely to break your system! You should probably NOT install it unless you know what you are doing. Are you willing to take that risk? [{answers:s}] ",
|
"confirm_app_install_danger": "DANGER! This application is known to be still experimental (if not explicitly not working)! You should probably NOT install it unless you know what you are doing. NO SUPPORT will be provided if this app doesn't work or break your system... If you are willing to take that risk anyway, type '{answers:s}'",
|
||||||
"confirm_app_install_thirdparty": "WARNING! Installing third-party applications may compromise the integrity and security of your system. You should probably NOT install it unless you know what you are doing. Are you willing to take that risk? [{answers:s}] ",
|
"confirm_app_install_thirdparty": "DANGER! This application is not part of Yunohost's application catalog. Installing third-party applications may compromise the integrity and security of your system. You should probably NOT install it unless you know what you are doing. NO SUPPORT will be provided if this app doesn't work or break your system... If you are willing to take that risk anyway, type '{answers:s}'",
|
||||||
"custom_app_url_required": "You must provide a URL to upgrade your custom app {app:s}",
|
"custom_app_url_required": "You must provide a URL to upgrade your custom app {app:s}",
|
||||||
"custom_appslist_name_required": "You must provide a name for your custom app list",
|
"custom_appslist_name_required": "You must provide a name for your custom app list",
|
||||||
"diagnosis_debian_version_error": "Could not retrieve the Debian version: {error}",
|
"diagnosis_debian_version_error": "Could not retrieve the Debian version: {error}",
|
||||||
|
|
|
@ -789,10 +789,21 @@ def app_install(operation_logger, app, label=None, args=None, no_remove_on_failu
|
||||||
if confirm is None or force or msettings.get('interface') == 'api':
|
if confirm is None or force or msettings.get('interface') == 'api':
|
||||||
return
|
return
|
||||||
|
|
||||||
answer = msignals.prompt(m18n.n('confirm_app_install_' + confirm,
|
if confirm in ["danger", "thirdparty"]:
|
||||||
answers='Y/N'))
|
answer = msignals.prompt(m18n.n('confirm_app_install_' + confirm,
|
||||||
if answer.upper() != "Y":
|
answers='Yes, I understand'),
|
||||||
raise YunohostError("aborting")
|
color="red")
|
||||||
|
if answer != "Yes, I understand":
|
||||||
|
raise YunohostError("aborting")
|
||||||
|
|
||||||
|
else:
|
||||||
|
answer = msignals.prompt(m18n.n('confirm_app_install_' + confirm,
|
||||||
|
answers='Y/N'),
|
||||||
|
color="yellow")
|
||||||
|
if answer.upper() != "Y":
|
||||||
|
raise YunohostError("aborting")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
raw_app_list = app_list(raw=True)
|
raw_app_list = app_list(raw=True)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue