Skip to content

Commit 74c6814

Browse files
authored
Update installUpgradeFunctions.sh: Output msg if already in memory
this message goes back to allsky-config
1 parent 604997c commit 74c6814

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/installUpgradeFunctions.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,12 @@ function check_tmp()
926926
# in /etc/fstab with ${ALLSKY_TMP} in it, even if it's not currently mounted.
927927
if grep --quiet "^${INITIAL_FSTAB_STRING}" /etc/fstab ; then
928928
MSG="${ALLSKY_TMP} is currently a memory filesystem; no change needed."
929-
display_msg --logonly info "${MSG}"
929+
if [[ ${CALLED_FROM} == "install" ]]; then
930+
display_msg --logonly info "${MSG}"
931+
else
932+
o_ "\n${MSG}\n"
933+
return 0
934+
fi
930935

931936
# If there's a prior Allsky version and it's tmp directory is mounted,
932937
# try to unmount it, but that often gives an error that it's busy,

0 commit comments

Comments
 (0)