#!/bin/bash
#

if [ $# -lt 1 ]
then 
echo "usage: restore-ini.sh filename"
exit 1
fi

cd $GCP_ROOT
cd ..

FileName=$1
ExtName=${FileName##*.}

if [ $ExtName == "tar" ]
then
 tar xvf $1
elif [ $ExtName == "gz" ]
then
 tar zxvf $1
else
 exit 2
fi

exit $? 

