HEX
Server: Apache
System: Linux server.onegroup3.co.nz 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
User: importersclearan (1088)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/acronis/bin/cyber-desktop-agent.sh
#!/bin/sh

# Note: assumes GNU libc (ldd --version format)
LDD_VERSION=`ldd --version | sed 's/.* //;q'`
if echo "$LDD_VERSION" | awk -F. '{ if ($1 > 2 || ($1 == 2 && $2 >= 31)) { exit 0 } else { exit 1 } }'; then
    export LD_LIBRARY_PATH=/opt/acronis/lib/cyber-desktop-service-qt6:/opt/acronis/lib
    exec /opt/acronis/bin/cyber-desktop-agent-qt6 --capture
else
    # Yes, paths are in reverse order for Qt5. This is intentional.
    # In the old build we had log dir and Qt plugins dir derived from the first item,
    # so we need to keep it in the same order.
    export LD_LIBRARY_PATH=/opt/acronis/lib:/opt/acronis/lib/cyber-desktop-service-qt5
    exec /opt/acronis/bin/cyber-desktop-agent-qt5 --capture
fi