You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
622 B
Bash
23 lines
622 B
Bash
#!/bin/sh
|
|
if [ $# -ne 1 ]; then
|
|
echo "-----------------------------------"
|
|
echo " Undefined parameter"
|
|
echo "./backupApi.sh [application name]"
|
|
echo "-----------------------------------"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -f "../$1.jar" ]; then
|
|
echo "==================================="
|
|
echo " $1.jar file not exist"
|
|
echo "==================================="
|
|
exit 1
|
|
fi
|
|
|
|
source /applications/adds/bin/stopApi.sh $1
|
|
|
|
echo "-----------------------------------"
|
|
echo " $1 application backup success!"
|
|
echo "-----------------------------------"
|
|
mv /applications/adds/$1.jar /applications/adds/$1.jar_backup
|