title: managing files in docker container through env variables and a bash script
body: <p>so what am trying to do is to delete certain files based on the value of my environment variable through a script in a docker container</p>
  
  <p>I run my dockerfile with my script included through CMD with the command "docker run -tid -p 443:443 -p 80:80 -e INDEX=1 --name {container name} {image name}"</p>
  
  <p>here's my script file :</p>
  
  <pre><code>if "$INDEX" == 1
      rm var/www/index.nginx-debian.html &amp;&amp; rm var/www/index.php &amp;&amp; rm var/www/phpMyAdmin &amp;&amp; rm var/www/wordpress
  </code></pre>
  
  <p>am not sure where my errors are, is the script doing what it should be doing (checking the env variable's value and acting accordingly) ? 
  I do however know that my env variable got changed correctly when i exec the container i find it set to 1, its just that the files are not getting affected by the script
  what can i possibly change to make sure the files i want deleted when a certain env variable value is true are actually deleted ?</p>