#$1 "hly-api-interface /data/deploy/bin/test source /etc/profile spwd=/data/deploy/java dpwd=/data/deploy/java diappfilename=$1 filename=$diappfilename-1.0.0-assembly.tar.gz echo "tar -zcvPf $dpwd/bak/bak-$diappfilename.bak.tar.gz $dpwd/$diappfilename" tar -zcvPf $dpwd/bak/bak-$diappfilename.tar.gz $dpwd/$diappfilename echo "rm -rf $dpwd/$diappfilename" rm -rf $dpwd/$diappfilename mkdir $dpwd/$diappfilename echo "tar -xzvf $spwd/$filename -C $dpwd/$diappfilename --strip-component 1" tar -xzvf $spwd/$filename -C $dpwd/$diappfilename --strip-component 1 /data/deploy/java/$diappfilename/bin/restart.sh