Skip to content

Commit 25030d4

Browse files
authored
Update upgrade.sh: Minor wording tweaks
1 parent a0bee40 commit 25030d4

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

upgrade.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ if [[ ! -d ${ALLSKY_CONFIG} ]]; then
216216
exit 2
217217
fi
218218

219-
if [[ "${ACTION}" != "upgrade" ]]; then
219+
if [[ "${ACTION}" != "upgrade" && ${DEBUG} == "true" ]]; then
220220
# we're continuing where we left off, so don't welcome again.
221221
display_msg --log progress "Continuing the upgrade..."
222222
fi
@@ -386,13 +386,10 @@ fi
386386
# change messages to say "upgrade", not "install", etc.
387387
if false; then # XXXXXXXXXX TODO: FIX
388388
MSG="The first step of the upgrade is complete.\n"
389-
display_msg --log progress "${MSG}" " Running install.sh"
389+
display_msg progress "${MSG}" " Running install.sh"
390390
display_msg --logonly info "ENDING UPGRADE; calling install.sh"
391391
# shellcheck disable=SC2086,SC2291
392-
X="$(
393-
#shellcheck disable=SC2116 # XXXXXXXXX temporary
394-
echo XXX ./install.sh ${DEBUG_ARG} ${SKIP} --doUpgrade
395-
)"
392+
X="$( ./install.sh ${DEBUG_ARG} ${SKIP} --doUpgrade )"
396393
RET=$?
397394
if [[ ${RET} -ne 0 ]]; then
398395
display_msg --log warning "install.sh failed." "Contact the Allsky Team"
@@ -410,11 +407,11 @@ elif [[ ${ACTION} == "doUpgrade" ]]; then
410407
if [[ ${CHOSEN_METHOD} == "${METHOD_IN_PLACE}" ]]; then
411408
X="$( "${ALLSKY_UTILITIES}/allsky-config.sh" recreate_files "${FILES_DOWNLOADED_FILE}" 2>&1 )"
412409
if [[ $? -ne 0 ]]; then
413-
MSG="Unable to update files: ${X}"
410+
MSG="Unable to recreate files: ${X}"
414411
display_msg --log error "${MSG}" "Contact the Allsky Team"
415412
exit 1
416413
fi
417-
display_msg --log progress "Allsky updated." " Go to the WebUI to restart Allsky.\n"
414+
display_msg --log progress "Allsky upgraded." " Go to the WebUI to restart Allsky.\n"
418415
display_msg --logonly info "Recreated files:\n${X}"
419416
display_msg --logonly info "ENDING UPGRADE."
420417
exit 0

0 commit comments

Comments
 (0)