Skip to content

Commit

Permalink
Merge pull request #3195 from thomasjacquin/install-rsyslog
Browse files Browse the repository at this point in the history
Update install.sh: install rsyslog
  • Loading branch information
EricClaeys authored Dec 19, 2023
2 parents 00aff46 + d05c41a commit 3daca6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 3daca6e

Please sign in to comment.