summaryrefslogtreecommitdiffstats
path: root/makeself
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-04-01 20:28:56 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-04-01 20:28:56 +0300
commitc148ab1a19c3374543bc849e394d7420c9147a05 (patch)
tree7ac4211a8919ad02847afc1cb69f44085cb279cc /makeself
parent861548f8d90ae3f996006bf8d2e5213c0ea629f5 (diff)
keep .orig files in etc/netdata; remove etc/netdata.new
Diffstat (limited to 'makeself')
-rwxr-xr-xmakeself/install-or-update.sh7
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