Skip to content

Commit

Permalink
Cleanup unattended install, emphasize discover message
Browse files Browse the repository at this point in the history
  • Loading branch information
ron.record committed Oct 28, 2024
1 parent a4d9d4c commit 9b7d7f3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
5 changes: 4 additions & 1 deletion Install
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ else
}
fi

[ "$1" == "unattended" ] && export ROON_UNATTENDED="unattended"
[ "$1" == "unattended" ] && {
export ROON_UNATTENDED="unattended"
shift
}

[ "${iamroot}" ] && {
[ "${ROON_UNATTENDED}" ] || {
Expand Down
12 changes: 8 additions & 4 deletions etc/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ if [ "${PYTHONUSERBASE}" ]; then
fi
. ${ROONCONF}

RVER=$(${PYTHON} -m pip show roonapi | grep Version | awk -F ':' ' { print $2 } ')
RVER=$(${PYTHON} -m pip show roonapi 2>/dev/null | grep Version | awk -F ':' ' { print $2 } ')
# Remove leading and trailing spaces in RVER
RVER="$(echo -e "${RVER}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
# Only patch Roonapi version 0.0.38 and earlier
Expand Down Expand Up @@ -309,16 +309,20 @@ else
fi

# Install utilities used by the RoonCommandLine menu system
[ -x ${ROON}/etc/install-figlet ] && ${SUDO} ${SARG} ${SUSR} ${ROON}/etc/install-figlet
[ -x ${ROON}/etc/install-fzf ] && ${SUDO} ${SARG} ${SUSR} ${ROON}/etc/install-fzf
[ -x ${ROON}/etc/install-gum ] && ${SUDO} ${SARG} ${SUSR} ${ROON}/etc/install-gum
[ -x ${ROON}/etc/install-figlet ] && ${SUDO} ${SARG} ${SUSR} ${ROON}/etc/install-figlet 2>/dev/null
[ -x ${ROON}/etc/install-fzf ] && ${SUDO} ${SARG} ${SUSR} ${ROON}/etc/install-fzf 2>/dev/null
[ -x ${ROON}/etc/install-gum ] && ${SUDO} ${SARG} ${SUSR} ${ROON}/etc/install-gum 2>/dev/null

echo ""
if [ "${ROON_UNATTENDED}" ]; then
echo ""
echo "*************************** IMPORTANT ***************************"
echo "Roon Core discovery and authorizing the RoonCommandLine extension"
echo "must be performed post-installation in unattended installations."
echo "After the installation of RoonCommandLine completes, run the command:"
echo ""
echo " /usr/local/bin/roon -c discover"
echo "*****************************************************************"
else
${ROON}/etc/discover "${SUDO}" "${SARG}" "${SUSR}"
fi
Expand Down
9 changes: 8 additions & 1 deletion linInstall
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ else
}
fi

[ "$1" == "unattended" ] && export ROON_UNATTENDED="unattended"
[ "$1" == "unattended" ] && {
export ROON_UNATTENDED="unattended"
shift
}

BOLD=$(tput bold 2>/dev/null)
NORMAL=$(tput sgr0 2>/dev/null)
Expand Down Expand Up @@ -417,10 +420,14 @@ fi

echo ""
if [ "${ROON_UNATTENDED}" ]; then
echo ""
echo "*************************** IMPORTANT ***************************"
echo "Roon Core discovery and authorizing the RoonCommandLine extension"
echo "must be performed post-installation in unattended installations."
echo "After the installation of RoonCommandLine completes, run the command:"
echo ""
echo " /usr/local/bin/roon -c discover"
echo "*****************************************************************"
else
${ROON}/etc/discover "${SUDO}" "${SARG}" "${SUSR}"
fi
Expand Down
9 changes: 8 additions & 1 deletion macInstall
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ else
}
fi

[ "$1" == "unattended" ] && export ROON_UNATTENDED="unattended"
[ "$1" == "unattended" ] && {
export ROON_UNATTENDED="unattended"
shift
}

BOLD=$(tput bold 2>/dev/null)
NORMAL=$(tput sgr0 2>/dev/null)
Expand Down Expand Up @@ -445,10 +448,14 @@ fi

echo ""
if [ "${ROON_UNATTENDED}" ]; then
echo ""
echo "*************************** IMPORTANT ***************************"
echo "Roon Core discovery and authorizing the RoonCommandLine extension"
echo "must be performed post-installation in unattended installations."
echo "After the installation of RoonCommandLine completes, run the command:"
echo ""
echo " /usr/local/bin/roon -c discover"
echo "*****************************************************************"
else
${ROON}/etc/discover "${SUDO}" "${SARG}" "${SUSR}"
fi
Expand Down

0 comments on commit 9b7d7f3

Please sign in to comment.