Rpm no longer create backup file. 60/1660/2
authorBalazs Szekeres <balazs.szekeres@nokia.com>
Fri, 27 Sep 2019 09:08:00 +0000 (11:08 +0200)
committerBalazs Szekeres <balazs.szekeres@nokia.com>
Fri, 27 Sep 2019 09:13:21 +0000 (11:13 +0200)
Change-Id: Ice4594eafbfecbd7f53351fd021a976e11d4a7f0
Signed-off-by: Balazs Szekeres <balazs.szekeres@nokia.com>
SPECS/utils.spec

index dc5fe99..5e6a606 100644 (file)
@@ -15,7 +15,7 @@
 %define COMPONENT utils
 %define RPM_NAME caas-%{COMPONENT}
 %define RPM_MAJOR_VERSION 1.0.0
-%define RPM_MINOR_VERSION 6
+%define RPM_MINOR_VERSION 7
 %define KUBELET_PLUGINS_LOGDIR /var/log/kubelet-plugins/
 
 Name:           %{RPM_NAME}
@@ -64,8 +64,8 @@ mkdir -p %{KUBELET_PLUGINS_LOGDIR}/
 grep "#CaaS CUSTOM BEGIN" /etc/logrotate.d/syslog > /dev/null;
 if [ $? -eq 0 ]; then
   sed -i -e '/#CaaS CUSTOM BEGIN/,/#CaaS CUSTOM END/d' /etc/logrotate.d/syslog
-  fi
-sed -i.bak -e '/.*missingok/i #CaaS CUSTOM BEGIN\n    hourly\n    size 50\n#CaaS CUSTOM END' /etc/logrotate.d/syslog
+fi
+sed -i -e '/.*missingok/i #CaaS CUSTOM BEGIN\n    hourly\n    size 50\n#CaaS CUSTOM END' /etc/logrotate.d/syslog
 # --------------------------- DEPLOY
 find /usr/lib/debug/usr/ -xtype l -exec rm -f {} \;
 # --------------------------- COMMON