1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/netdata_ynh.git synced 2024-09-03 19:46:33 +02:00

Add proper comment to avoid multiple postgres conf

This commit is contained in:
Jimmy Monin 2022-08-20 18:36:57 +02:00
parent 30fa104f08
commit ed0bfb8f67

View file

@ -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 <<EOF
# ------------ YUNOHOST ---------------
- name: local
dsn: 'postgres://postgres:$(cat /etc/yunohost/psql)@localhost:5432/postgres'
EOF