#!/bin/bash

cd /opt/euro-beta

if [ $2"." == "." ]
then
  echo "xzvf $1.tgz" > /tmp/restore_external_files
  tar xzvf $1.tgz
else
  echo "unzip -o -P $2 $1.zip" > /tmp/restore_external_files
  echo "rm -f checksum.bin" >> /tmp/restore_external_files
  unzip -o -P $2 $1.zip   
  rm -f checksum.bin
fi  
