From 6d90c3a1870098bdf1816006ef21164412206cce Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Wed, 29 Jan 2025 21:17:20 +0100 Subject: [PATCH] arc: set correct ports Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index 20eabf94..697988ce 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -2913,7 +2913,7 @@ function greplogs() { tar -czf "${TMP_PATH}/logs.tar.gz" -C "${TMP_PATH}" logs if [ -z "${SSH_TTY}" ]; then # web mv -f "${TMP_PATH}/logs.tar.gz" "/var/www/data/logs.tar.gz" - URL="http://${IPCON}:${HTTPPORT:-8080}/logs.tar.gz" + URL="http://${IPCON}${HTTPPORT:+:$HTTPPORT}/logs.tar.gz" MSG+="Please via ${URL} to download the logs,\nAnd go to Github or Discord to create an issue and upload the logs." else sz -be -B 536870912 "${TMP_PATH}/logs.tar.gz" @@ -2934,7 +2934,7 @@ function getbackup() { if [ -z "${SSH_TTY}" ]; then # web cp -f "${TMP_PATH}/dsmconfig.tar.gz" "/var/www/data/dsmconfig.tar.gz" chmod 644 "/var/www/data/dsmconfig.tar.gz" - URL="http://${IPCON}:${HTTPPORT:-8080}/dsmconfig.tar.gz" + URL="http://${IPCON}${HTTPPORT:+:$HTTPPORT}/dsmconfig.tar.gz" dialog --backtitle "$(backtitle)" --colors --title "DSM Config" \ --msgbox "Please via ${URL}\nto download the dsmconfig and unzip it and back it up in order by file name." 0 0 else