From 40145648f0a8551fce2c420ba0fe091ec9faa1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sat, 14 Nov 2015 23:40:16 +0100 Subject: [PATCH] [fix] Do not restrict warning to tty in service_saferemove --- src/yunohost/service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/yunohost/service.py b/src/yunohost/service.py index 984215fe3..7c445ae30 100644 --- a/src/yunohost/service.py +++ b/src/yunohost/service.py @@ -469,8 +469,7 @@ def service_saferemove(service, conf_file, force=False): else: services[service]['conffiles'][conf_file] = previous_hash os.remove(conf_backup_file) - if os.isatty(1) and \ - (len(previous_hash) == 32 or previous_hash[-32:] != current_hash): + if len(previous_hash) == 32 or previous_hash[-32:] != current_hash: logger.warning(m18n.n('service_configuration_conflict', file=conf_file))