Fix depricated variable call in template

It may fire an error in future versions

Change-Id: Icc059375ce1887029dadb4c3072bd13976bf2b8b
Closes-bug: #1554477
This commit is contained in:
Kyrylo Galanov 2016-03-09 11:32:48 +01:00
parent 00d80aeab0
commit 97e655014d
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
find <%= @logpath %> -type f -name 'atop_*' -mtime +<%= @rotate %> -delete
# remove atop_current if it is a broken symlink
test -L <%= @logpath %>/atop_current -a ! -e <%= logpath %>/atop_current && \
test -L <%= @logpath %>/atop_current -a ! -e <%= @logpath %>/atop_current && \
rm <%= @logpath %>/atop_current
# link current to most recent file if it exists