From fdc90254632bc1793194e2939f2fd0bf0bf60514 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sun, 22 Jan 2023 10:40:43 +0100 Subject: [PATCH] Correct typo --- dbp/cron.sh | 2 +- install.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dbp/cron.sh b/dbp/cron.sh index 3363b24..542cf43 100755 --- a/dbp/cron.sh +++ b/dbp/cron.sh @@ -67,7 +67,7 @@ if [ $ERROR_ENABLE = "true" ]; then touch ${MYSTIC_DIR}/logs/errors.${TOMORROW}.log ln -sf errors.${NOW}.log ${MYSTIC_DIR}/logs/errors.log [ -f /${MYSTIC_DIR}/logs/errors.${YESTERDAY}.log ] && gzip -9 ${MYSTIC_DIR}/logs/errors.${YESTERDAY}.log - find ${MYSTIC_DIR}/logs/ -type f -mtime +${ERROR_KEEP} -name 'error.*' -exec rm {} \; + find ${MYSTIC_DIR}/logs/ -type f -mtime +${ERROR_KEEP} -name 'errors.*' -exec rm {} \; fi if [ $MRCCHAT_ENABLE = "true" ]; then diff --git a/install.sh b/install.sh index ac8a5eb..a8ab4e5 100644 --- a/install.sh +++ b/install.sh @@ -14,6 +14,8 @@ MSDIR="/opt/mystic" TMP_DIR=$(mktemp -d) ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) +apt install lsb-release -y &>/dev/null + DIST=$(lsb_release -i -s) CODENAME=$(lsb_release -c -s)