mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
Merge pull request #744 from gianluigitrontini/debian
Fixes #743: Move conditionals for chromium/google chrome before artisan optimize
This commit is contained in:
16
debian/scripts/init.sh
vendored
16
debian/scripts/init.sh
vendored
@@ -1,5 +1,12 @@
|
|||||||
#!/bin/sh -eu
|
#!/bin/sh -eu
|
||||||
|
|
||||||
|
# Set PDF generation browser path based on architecture
|
||||||
|
if [ "$(dpkg --print-architecture)" = "amd64" ]; then
|
||||||
|
export SNAPPDF_CHROMIUM_PATH=/usr/bin/google-chrome-stable
|
||||||
|
elif [ "$(dpkg --print-architecture)" = "arm64" ]; then
|
||||||
|
export SNAPPDF_CHROMIUM_PATH=/usr/bin/chromium
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$*" = 'supervisord -c /etc/supervisor/conf.d/supervisord.conf' ]; then
|
if [ "$*" = 'supervisord -c /etc/supervisor/conf.d/supervisord.conf' ]; then
|
||||||
|
|
||||||
# Check for required folders and create if needed
|
# Check for required folders and create if needed
|
||||||
@@ -57,11 +64,4 @@ if [ "$*" = 'supervisord -c /etc/supervisor/conf.d/supervisord.conf' ]; then
|
|||||||
echo "Starting supervisord..."
|
echo "Starting supervisord..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set PDF generation browser path based on architecture
|
exec "$@"
|
||||||
if [ "$(dpkg --print-architecture)" = "amd64" ]; then
|
|
||||||
export SNAPPDF_CHROMIUM_PATH=/usr/bin/google-chrome-stable
|
|
||||||
elif [ "$(dpkg --print-architecture)" = "arm64" ]; then
|
|
||||||
export SNAPPDF_CHROMIUM_PATH=/usr/bin/chromium
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec "$@"
|
|
||||||
Reference in New Issue
Block a user