You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
snarwork/deploy/bin/test/restartproject.sh

24 lines
580 B

#$1 "hly-api-interface
spwd=/mountdata/test/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