first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SO_PATH="/home/smart/SmartOrganizer"
|
||||
TASK_FILE="${SO_PATH}/tasks/upgrade_self.conf"
|
||||
|
||||
TARGET_VERSION=${1}
|
||||
|
||||
if [[ -z ${TARGET_VERSION} ]]; then
|
||||
echo "Please input target_version, eg: xxx.sh 1.0.0"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
echo "CFG_NAME=\"SmartOrganizer\"
|
||||
CFG_VERSION=\"${TARGET_VERSION}\"
|
||||
CFG_URL=\"http://static.baobaot.com/smart/organizer/\${CFG_NAME}.zip\"
|
||||
CFG_FORMAT=\"zip\"
|
||||
CFG_DIR=\"\"
|
||||
CFG_UN=\"\"
|
||||
CFG_OUTPUT_PATH=\"\"
|
||||
CFG_EXECUTE=\"upgrade.sh\"
|
||||
CFG_ARGS=\"\"" > ${TASK_FILE}
|
||||
Reference in New Issue
Block a user