some fixes for the multi arch building
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 1 Nov 2020 10:40:33 +0000 (11:40 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 1 Nov 2020 10:40:33 +0000 (11:40 +0100)
Dockerfile
rootfs/etc/services.d/music_assistant/run

index 45c90a1afadd8f615d97a7c8646575a91203b01a..0774e9b6312c58fcb6a8f4f1a2a19949a0991459 100755 (executable)
@@ -7,7 +7,7 @@ ARG JEMALLOC_VERSION=5.2.1
 ARG S6_OVERLAY_VERSION=2.1.0.2
 
 
-RUN BUILD_ARCH="$(dpkg --print-architecture)" && \
+RUN BUILD_ARCH="$(uname -m)" && \
     apt-get update && apt-get install -y --no-install-recommends \
                # required packages
                git bash jq flac sox libsox-fmt-mp3 zip curl unzip ffmpeg libsndfile1 libtag1v5 libblas3 liblapack3 \
index 1e5c9d121b61f8c015e15f03a4f78a8b5743c68d..f933252b6db481546d2559d7821484a96bf2ee09 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/with-contenv sh
+#!/usr/bin/with-contenv bash
 # ==============================================================================
 # Run MusicAssistant
 # ==============================================================================
@@ -8,7 +8,7 @@ export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
 
 args="--config /data"
 
-if [ ${DEBUG}=="true" ]; then
+if [ "$DEBUG" = true ] ; then
     args="${args} --debug"
 fi