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:
parent
30fa104f08
commit
ed0bfb8f67
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue