diff options
author | root <root@localhost.localdomain> | 2016-07-16 04:29:17 +0300 |
---|---|---|
committer | root <root@localhost.localdomain> | 2016-07-16 04:29:17 +0300 |
commit | 83d66c041bd120570ed10c698ff8a4f5ba65c018 (patch) | |
tree | 6c5f1c56def380eca67771ffb63d7b3fadb3dabc | |
parent | af83989a8b5175bd850e3451b8197c17104e3d50 (diff) |
dont overwrite files while moving them to new locations
-rwxr-xr-x | netdata-installer.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index f38d1c665c..13c97e0876 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -404,7 +404,7 @@ if [ -d "${NETDATA_PREFIX}/etc/netdata" ] do for y in "" ".old" ".orig" do - if [ -f "${NETDATA_PREFIX}/etc/netdata/${x}.conf${y}" ] + if [ -f "${NETDATA_PREFIX}/etc/netdata/${x}.conf${y}" -a ! -f "${NETDATA_PREFIX}/etc/netdata/charts.d/${x}.conf${y}" ] then run mv -f "${NETDATA_PREFIX}/etc/netdata/${x}.conf${y}" "${NETDATA_PREFIX}/etc/netdata/charts.d/${x}.conf${y}" fi |