Your IP : 216.73.217.33


Current Path : /opt/acronis/bin/
Upload File :
Current 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