mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-28 22:40:20 +00:00
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
30 lines
644 B
Bash
30 lines
644 B
Bash
#!/bin/bash
|
|
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH <https://nextcloud.com>
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
if [ "$AIO_LOG_LEVEL" = 'debug' ]; then
|
|
set -x
|
|
fi
|
|
|
|
GOLANG_LOG="$(case "$AIO_LOG_LEVEL" in
|
|
debug) printf 'info' ;;
|
|
info) printf 'info' ;;
|
|
warn) printf 'warning' ;;
|
|
error) printf 'error' ;;
|
|
esac)"
|
|
export GOLANG_LOG
|
|
if [ "$AIO_LOG_LEVEL" = "debug" ]; then
|
|
export DEBUG='*'
|
|
fi
|
|
|
|
echo "Imaginary has started"
|
|
|
|
IMAGINARY_ARGS=(-return-size -max-allowed-resolution 222.2)
|
|
|
|
if [ -n "$IMAGINARY_SECRET" ]; then
|
|
IMAGINARY_ARGS+=(-key "$IMAGINARY_SECRET")
|
|
fi
|
|
|
|
exec imaginary "${IMAGINARY_ARGS[@]}" "$@"
|