systemvmtemplate: only extract systemvm directory from src snapshot

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2015-03-30 14:28:57 +05:30
parent 03ff244ff1
commit 9080ed6efc
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ configure_services() {
snapshot_dir="/opt/cloudstack*"
cd /opt
wget --no-check-certificate $snapshot_url -O cloudstack.tar.gz
tar -zxvf cloudstack.tar.gz
tar -zxvf cloudstack.tar.gz --wildcards cloudstack*/systemvm
cp -rv $snapshot_dir/systemvm/patches/debian/config/* /
cp -rv $snapshot_dir/systemvm/patches/debian/vpn/* /
mkdir -p /usr/share/cloud/

View File

@ -237,7 +237,7 @@ configure_services() {
snapshot_dir="/opt/cloudstack*"
cd /opt
wget --no-check-certificate $snapshot_url -O cloudstack.tar.gz
tar -zxvf cloudstack.tar.gz
tar -zxvf cloudstack.tar.gz --wildcards cloudstack*/systemvm
cp -rv $snapshot_dir/systemvm/patches/debian/config/* /
cp -rv $snapshot_dir/systemvm/patches/debian/vpn/* /
mkdir -p /usr/share/cloud/