mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
Correctly set CPU_ARCH for notify_push
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
5ad1efde2e
commit
6b6c9dfbc7
2 changed files with 10 additions and 1 deletions
|
|
@ -11,4 +11,13 @@ if ! bash /entrypoint.sh; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Correctly set CPU_ARCH for notify_push
|
||||||
|
export CPU_ARCH="$(uname -p)"
|
||||||
|
if [ -z "$CPU_ARCH" ]; then
|
||||||
|
echo "Could not get processor architecture. Exiting."
|
||||||
|
exit 1
|
||||||
|
elif [ "$CPU_ARCH" != "x86_64" ]; then
|
||||||
|
export CPU_ARCH="aarch64"
|
||||||
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
@ -27,4 +27,4 @@ stdout_logfile=/dev/stdout
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
command=/var/www/html/custom_apps/notify_push/bin/x86_64/notify_push /var/www/html/config/config.php --port 7867 --redis-url redis://:%(ENV_REDIS_HOST_PASSWORD)s@%(ENV_REDIS_HOST)s
|
command=/var/www/html/custom_apps/notify_push/bin/%(ENV_CPU_ARCH)s/notify_push /var/www/html/config/config.php --port 7867 --redis-url redis://:%(ENV_REDIS_HOST_PASSWORD)s@%(ENV_REDIS_HOST)s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue