Used sequpgrade.sh to upgrade existing seqs
This commit is contained in:
@@ -18,12 +18,12 @@ CONFIG=0
|
||||
CONFIG_FILE_NAME="${toolName}.cfg"
|
||||
CONFIG_FILE_TEMPLATE="$WDIR/${CONFIG_FILE_NAME}.example"
|
||||
|
||||
step_config() {
|
||||
seq_config() {
|
||||
initSeqConfig "$CONFIG_FILE_NAME" "$CONFIG_FILE_TEMPLATE"
|
||||
if [ $? -eq 0 ] ; then
|
||||
CONFIG=1
|
||||
else
|
||||
[ $DRY -eq 0 ] && return 1
|
||||
dry || return 1
|
||||
fi
|
||||
toolConfigLoc=`eval echo "$TWXA_CONFIG_LOC"`
|
||||
toolConfig="$toolConfigLoc/config_cache/$toolConfigName"
|
||||
@@ -39,7 +39,7 @@ step_config() {
|
||||
}
|
||||
|
||||
step_1_info() { echo "Install $toolName [VERSION]"; }
|
||||
step_1_alias() { ALIAS="install"; }
|
||||
step_1_alias() { echo "install"; }
|
||||
step_1() {
|
||||
shift
|
||||
if [ ! -z $1 ] ; then
|
||||
@@ -49,7 +49,7 @@ step_1() {
|
||||
}
|
||||
|
||||
step_2_info() { echo "Setup git repository at $toolGitLoc [VERSION e.g. 1.4.1]"; }
|
||||
step_2_alias() { ALIAS="git"; }
|
||||
step_2_alias() { echo "git"; }
|
||||
step_2() {
|
||||
shift
|
||||
if [ ! -e "$toolGitLoc/.git" ] ; then
|
||||
@@ -67,11 +67,11 @@ step_2() {
|
||||
}
|
||||
|
||||
step_20_info() { echo "Backup $toolName"; }
|
||||
step_20_alias() { ALIAS="backup"; }
|
||||
step_20_alias() { echo "backup"; }
|
||||
step_20() {
|
||||
shift
|
||||
if [ ! -e "$toolConfigLoc" ] ; then
|
||||
echoerr " [E] No installation found"
|
||||
error -e "No installation found"
|
||||
return 1
|
||||
fi
|
||||
|
||||
@@ -115,7 +115,7 @@ step_20() {
|
||||
}
|
||||
|
||||
step_30_info() { echo "Upgrade $toolName [VERSION]"; }
|
||||
step_30_alias() { ALIAS="upgrade"; }
|
||||
step_30_alias() { echo "upgrade"; }
|
||||
step_30() {
|
||||
shift
|
||||
if [ ! -z $1 ] ; then
|
||||
@@ -124,7 +124,7 @@ step_30() {
|
||||
|
||||
#step backup
|
||||
if [ $? -ne 0 ]; then
|
||||
echoerr " [E] Backup failed. Aborting upgrade."
|
||||
error -e "Backup failed. Aborting upgrade."
|
||||
return 1
|
||||
fi
|
||||
|
||||
@@ -143,5 +143,5 @@ step_30() {
|
||||
exe chown -R www-data: "$toolConfigLoc/*_cache"
|
||||
}
|
||||
|
||||
VERSION_SEQREV=11
|
||||
readonly sqr_minVersion=16
|
||||
. /usr/local/bin/sequencer.sh
|
||||
|
Reference in New Issue
Block a user