Skip to content

Commit 800649f

Browse files
authored
Update upgrade.sh: Let user know they can delete allsky-OLDEST
1 parent 02035f6 commit 800649f

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

upgrade.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ source "${ALLSKY_SCRIPTS}/functions.sh" || exit "${ALLSKY_EXIT_ERROR_STOP}"
1313
source "${ALLSKY_SCRIPTS}/installUpgradeFunctions.sh" || exit "${ALLSKY_EXIT_ERROR_STOP}"
1414

1515
############# TODO: Changes to install.sh needed:
16-
# * Accept "--doUpgrade" argument which means we're doing an upgrade.
17-
# - Don't display "**** Welcome to the installer ****"
18-
# - Don't prompt for camera
19-
# - Don't prompt to reboot
20-
# - Don't prompt other things ??
16+
# - Don't prompt for camera
17+
# - Don't prompt to reboot
18+
# - Don't prompt other things ??
2119
#
2220

2321
# shellcheck disable=SC2034
@@ -375,6 +373,12 @@ fi
375373

376374
cd "${ALLSKY_HOME}" || exit "${ALLSKY_EXIT_ERROR_STOP}"
377375

376+
if [[ -d ${OLDEST_DIR} ]]; then
377+
MSG="If you don't need the '${OLDEST_DIR}' directory, you can remove it:"
378+
MSG+=" sudo rm -fr '${OLDEST_DIR}'\n"
379+
add_to_post_actions "${MSG}"
380+
fi
381+
378382
# --doUpgrade tells it to use prior version without asking and to not display header,
379383
# change messages to say "upgrade", not "install", etc.
380384
if false; then # XXXXXXXXXX TODO: FIX

0 commit comments

Comments
 (0)