keep .orig files in etc/netdata; remove etc/netdata.new
Costa Tsaousis (ktsaou) committed
Apr 1, 2017 at 20:28 UTC
c148ab1a19c3374543bc849e394d7420c9147a05
1 file changed
+4
-3
makeself/install-or-update.sh
+4
-3
@@ -39,11 +39,12 @@ do
39
if [ "${configs_signatures[${md5}]}" = "${f}" ]
40
then
41
run cp "${x}" "${t}"
42
- else
43
- run cp "${x}" "${t}.orig"
42
fi
43
+ run mv "${x}" "${t}.orig"
44
done
45
46
+run rm -rf etc/netdata.new
47
+
48
49
# -----------------------------------------------------------------------------
50
progress "Add user netdata to required user groups"
@@ -165,7 +166,7 @@ do
166
if [ -f "${f}" ]
167
then
168
run chown root:${NETDATA_GROUP} "${f}"
168
- run chmod 4750 "${d}"
169
+ run chmod 4750 "${f}"
170
fi
171
done
172