diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-01 20:28:56 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-01 20:28:56 +0300 |
commit | c148ab1a19c3374543bc849e394d7420c9147a05 (patch) | |
tree | 7ac4211a8919ad02847afc1cb69f44085cb279cc /makeself | |
parent | 861548f8d90ae3f996006bf8d2e5213c0ea629f5 (diff) |
keep .orig files in etc/netdata; remove etc/netdata.new
Diffstat (limited to 'makeself')
-rwxr-xr-x | makeself/install-or-update.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/makeself/install-or-update.sh b/makeself/install-or-update.sh index 0ea8ee5cd6..3034abd3f0 100755 --- a/makeself/install-or-update.sh +++ b/makeself/install-or-update.sh @@ -39,11 +39,12 @@ do if [ "${configs_signatures[${md5}]}" = "${f}" ] then run cp "${x}" "${t}" - else - run cp "${x}" "${t}.orig" fi + run mv "${x}" "${t}.orig" done +run rm -rf etc/netdata.new + # ----------------------------------------------------------------------------- progress "Add user netdata to required user groups" @@ -165,7 +166,7 @@ do if [ -f "${f}" ] then run chown root:${NETDATA_GROUP} "${f}" - run chmod 4750 "${d}" + run chmod 4750 "${f}" fi done |