#!/bin/bash
cd /opt/rola/
cp -r /sw/AMS/WEB/0008_8.0.8.0_AMS/ .
mv 0008_8.0.8.0_AMS/ ams
cd /opt/rola/ams/linux
mkdir Appserver
mv Appserver.tar.gz Appserver
cd Appserver
tar xvzf Appserver.tar.gz
rm Appserver.tar.gz

rm Database.tar.gz
mkdir Services
mv Services.tar.gz Services
cd Services
tar xvf Services.tar.gz
rm Services.tar.gz

cd /opt/rola/ams/linux/webclient-services
tar xvf rsAmsBvService-8.0.8.0.tar.gz
tar xvf SharedComponents-8.0.8.0.tar.gz
rm *.gz
