Rename file in docker container
<p>I'm having a weird Error when i try to run a simple script on docker container on redhat machine, this is the Docker file</p>

<pre><code>From tomcat:7.0.70-jre7
ENV CLIENTNAME geocontact
ADD tomcat-users.xml /usr/local/tomcat/conf/
ADD app.war /usr/local/tomcat/webapps/
COPY app.sh /
</code></pre>

<p>ENTRYPOINT ["/app.sh"]</p>

<p>and app.sh is the script that cause the problem "only on redhat"</p>

<pre><code>#!/bin/bash
set -e
mv /usr/local/tomcat/webapps/app.war /usr/local/tomcat/webapps/client1.war
catalina.sh run
</code></pre>

<p>and the error message : </p>

<blockquote>
  <p>mv cannot move '/usr/local/tomcat/webapps/app.war to a subdirectory of itself, '/usr/local/tomcat/webapps/client1.war'</p>
</blockquote>

<p><a href="http://i.stack.imgur.com/Po9QX.png" rel="noreferrer">a screenshot for the error</a> 
and this only on redhat, i run the same image on ubuntu and centos with no problems. </p>