summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2025-03-31 13:47:08 +0200
committerSimon Rettberg2025-03-31 13:47:08 +0200
commit53f57dcc0e0909a10b73a84b6e8c3f8c8b3234f2 (patch)
treeccc99fcf92372d0f1550fcd578c6e73a0d57555f
parent[qemu] Honor existing libvirt uuid, make system-uuid if applicable (diff)
downloadmltk-53f57dcc0e0909a10b73a84b6e8c3f8c8b3234f2.tar.gz
mltk-53f57dcc0e0909a10b73a84b6e8c3f8c8b3234f2.tar.xz
mltk-53f57dcc0e0909a10b73a84b6e8c3f8c8b3234f2.zip
[slxlog] Allow 60k attachments
-rwxr-xr-xcore/modules/slxlog/data/opt/openslx/bin/slxlog4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/slxlog/data/opt/openslx/bin/slxlog b/core/modules/slxlog/data/opt/openslx/bin/slxlog
index 41504a74..b2cb9fcc 100755
--- a/core/modules/slxlog/data/opt/openslx/bin/slxlog
+++ b/core/modules/slxlog/data/opt/openslx/bin/slxlog
@@ -89,11 +89,11 @@ if [ -s /etc/system-uuid ]; then
fi
submitlog () {
- if [ -n "$EXTRA" ] && [ -r "$EXTRA" ] && [ -s "$EXTRA" ] && [ "$(stat -c %s "$EXTRA")" -lt "10000" ]; then # valid file attachment
+ if [ -n "$EXTRA" ] && [ -r "$EXTRA" ] && [ -s "$EXTRA" ] && [ "$(stat -c %s "$EXTRA")" -lt "60000" ]; then # valid file attachment
curl --data-urlencode "uuid=$UUID" --data-urlencode "type=$TYPE" --data-urlencode "description=$MSG" --data-urlencode "longdesc@$EXTRA" "$SLX_REMOTE_LOG" >> "$CURLLOG" 2>&1
elif [ -z "$EXTRA" ]; then # no attachment
curl --data-urlencode "uuid=$UUID" --data-urlencode "type=$TYPE" --data-urlencode "description=$MSG" "$SLX_REMOTE_LOG" >> "$CURLLOG" 2>&1
- elif [ -s "$EXTRA" ]; then # attachment file to big (more than 10k)
+ elif [ -s "$EXTRA" ]; then # attachment file to big (more than 60k)
curl --data-urlencode "uuid=$UUID" --data-urlencode "type=$TYPE" --data-urlencode "description=$MSG" --data-urlencode "longdesc=Attachment too large: $EXTRA" "$SLX_REMOTE_LOG" >> "$CURLLOG" 2>&1
else # empty attachment file (or missing)
curl --data-urlencode "uuid=$UUID" --data-urlencode "type=$TYPE" --data-urlencode "description=$MSG" --data-urlencode "longdesc=Attachment missing/empty: $EXTRA" "$SLX_REMOTE_LOG" >> "$CURLLOG" 2>&1