refactoring changes from sequpgrade (endReturn, ...) and some modernizations
This commit is contained in:
@@ -33,7 +33,7 @@ step_1() {
|
||||
return 0
|
||||
}
|
||||
|
||||
step_20_info() {
|
||||
step_20_info() {
|
||||
echo -n "Create a backup"
|
||||
if (( sq_config )) ; then
|
||||
echo " at $ELEMENT_WEB_BACKUP"
|
||||
@@ -116,10 +116,10 @@ step_22() {
|
||||
if [ ! -e "$tempExtract" ] ; then
|
||||
exe mkdir -p "$tempDown"
|
||||
exe wget -O "$tempLoc" "$downUrl"
|
||||
endReturn -o $? "Download failed: $downUrl"
|
||||
endReturn "Download failed: $downUrl"
|
||||
exe cd "$tempDown"
|
||||
exe tar -xf "$tempLoc"
|
||||
endReturn -o $? "Extract failed: $tempLoc"
|
||||
endReturn "Extract failed: $tempLoc"
|
||||
else
|
||||
info "Found existing download: $tempExtract"
|
||||
fi
|
||||
@@ -130,7 +130,7 @@ step_22() {
|
||||
|
||||
exe mv "$ELEMENT_WEB_LOC" "$tempBu"
|
||||
step backup "$tempBu"
|
||||
endReturn -o $? "Backup failed; $ELEMENT_WEB_LOC renamed!"
|
||||
endReturn "Backup failed; $ELEMENT_WEB_LOC renamed!"
|
||||
info "Installing version $latestVersion to $ELEMENT_WEB_LOC"
|
||||
exe mv "$tempExtract" "$ELEMENT_WEB_LOC"
|
||||
exe chown -R www-data: "$ELEMENT_WEB_LOC"
|
||||
|
Reference in New Issue
Block a user