Wojtek Świętoń c80b96671d
Fix/acs 5039 libreoffice home arm64 (#843)
* ACS-5039 - fix libreoffice installation and set LIBREOFFICE_HOME for arm64 - aio

* ACS-5039 - fix libreoffice installation and set LIBREOFFICE_HOME for arm64 - libreoffice

* ACS-5039 - Libreoffice home set by script

* ACS-5039 - Libreoffice home set by docker-entry point script

* ACS-5039 - Added EOL
2023-08-07 12:11:48 +02:00

10 lines
307 B
Bash
Executable File

#!/bin/bash
# Check if the architecture is ARM64 (aarch64)
if [[ "$(uname -m)" != "x86_64" ]]; then
export LIBREOFFICE_HOME=${LIBREOFFICE_HOME:=/usr/lib64/libreoffice}
fi
# Run the Alfresco transformation service JAR file with the specified Java options
exec java $JAVA_OPTS -jar /usr/bin/${1}.jar "$@"