From 886afd4d69b7d1de847057cfdce96eecfb454dc7 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 22 Jul 2018 13:38:43 +0200 Subject: [PATCH] [enh] after postinstall tell admin to had its first user --- locales/en.json | 1 + src/yunohost/tools.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/locales/en.json b/locales/en.json index 19213c372..6b1de237b 100644 --- a/locales/en.json +++ b/locales/en.json @@ -304,6 +304,7 @@ "port_already_opened": "Port {port:d} is already opened for {ip_version:s} connections", "port_available": "Port {port:d} is available", "port_unavailable": "Port {port:d} is not available", + "recommend_to_add_first_user": "The post-install is finished but YunoHost needs at least one user to work correctly, you should add one using 'yunohost user create' or the admin interface.", "restore_action_required": "You must specify something to restore", "restore_already_installed_app": "An app is already installed with the id '{app:s}'", "restore_app_failed": "Unable to restore the app '{app:s}'", diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index 05504a755..b7fbf5d71 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -408,6 +408,8 @@ def tools_postinstall(domain, password, ignore_dyndns=False): service_regen_conf(force=True) logger.success(m18n.n('yunohost_configured')) + logger.warning(m18n.n('recommend_to_add_first_user')) + def tools_update(ignore_apps=False, ignore_packages=False): """