From 0eec1462eaa4e271bce69f56d9bbf21be8c63418 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sun, 28 Apr 2024 20:56:44 +0200 Subject: [PATCH] arc-functions: fix grep log file Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index c3cdeb2f..0424ba54 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -2003,9 +2003,10 @@ function greplogs() { tar -czf "${PART1_PATH}/log.tar.gz" "${PART1_PATH}" logs if [ -z "${SSH_TTY}" ]; then # web mv -f "${PART1_PATH}/log.tar.gz" "/var/www/data/log.tar.gz" + chmod 644 "/var/www/data/log.tar.gz" URL="http://$(getIP)/log.tar.gz" dialog --backtitle "$(backtitle)" --colors --title "Grep Logs" \ - --msgbox "Please via ${URL} to download the log,\nAnd unzip it and back it up in order by file name." 0 0 + --msgbox "Please visit ${URL}\nto download the log, and unzip it and back it up in order by file name." 0 0 else sz -be -B 536870912 "${TMP_PATH}/log.tar.gz" dialog --backtitle "$(backtitle)" --colors --title "Grep Logs" \