From ed0bfb8f67fe9f05be61c12147efa2e8cac142c1 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sat, 20 Aug 2022 18:36:57 +0200 Subject: [PATCH] Add proper comment to avoid multiple postgres conf --- scripts/_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index a209464..d5fee85 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -88,8 +88,9 @@ netdata_add_yunohost_postgres_configuration () { if [ ! -f $postgres_file ] ; then cp $final_path/etc/netdata/orig/go.d/postgres.conf $postgres_file fi - if [ -f /etc/yunohost/psql ] && [ -z "$(grep "yunohost" $postgres_file)" ] ; then + if [ -f /etc/yunohost/psql ] && [ -z "$(grep "YUNOHOST" $postgres_file)" ] ; then cat >> $postgres_file <