From d05c41a32a6c6b8f1705dcb095b5f7ae19fb1696 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Mon, 18 Dec 2023 18:23:18 -0600 Subject: [PATCH] Update install.sh: install rsyslog --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index 51657910d..343bc5b18 100755 --- a/install.sh +++ b/install.sh @@ -1498,6 +1498,12 @@ update_variables_sh() create_allsky_logs() { display_msg --log progress "Setting permissions on ${ALLSKY_LOG} and ${ALLSKY_PERIODIC_LOG}." + + TMP="${ALLSKY_INSTALLATION_LOGS}/rsyslog.log" + sudo apt-get --assume-yes install rsyslog > "${TMP}" 2>&1 + check_success $? "rsyslog installation failed" "${TMP}" "${DEBUG}" + [[ $? -ne 0 ]] && exit_with_image 1 "${STATUS_ERROR}" "rsyslog install failed." + sudo truncate -s 0 "${ALLSKY_LOG}" "${ALLSKY_PERIODIC_LOG}" sudo chmod 664 "${ALLSKY_LOG}" "${ALLSKY_PERIODIC_LOG}" sudo chgrp "${ALLSKY_GROUP}" "${ALLSKY_LOG}" "${ALLSKY_PERIODIC_LOG}"