@cryptotaxi247 / netdata-1 / commits / 44cc6225e

Follow symlinks when listing conf files in updater

Follow symlinks when backing up configuration files. This enables the use and preservation of symlinks for configuration files. Follow-up for #2330.

Niels AD committed Jun 20, 2017 at 13:13 UTC 44cc6225e37c5753c7c48aafe309f2c28054b803
1 file changed +2 -2
netdata-installer.sh
+2 -2
@@ -555,7 +555,7 @@ config_signature_matches() {
555
556 # backup user configurations
557 installer_backup_suffix="${PID}.${RANDOM}"
558 -for x in $(find "${NETDATA_PREFIX}/etc/netdata/" -name '*.conf' -type f)
558 +for x in $(find -L "${NETDATA_PREFIX}/etc/netdata/" -name '*.conf' -type f)
559 do
560 if [ -f "${x}" ]
561 then
@@ -607,7 +607,7 @@ run make install || exit 1
607 # -----------------------------------------------------------------------------
608 progress "Restore user edited netdata configuration files"
609
610 -for x in $(find "${NETDATA_PREFIX}/etc/netdata/" -name '*.conf' -type f)
610 +for x in $(find -L "${NETDATA_PREFIX}/etc/netdata/" -name '*.conf' -type f)
611 do
612 if [ -f "${x}.installer_backup.${installer_backup_suffix}" ]
613 then