From ec53a15ff306644fb1451e28544d6ba66ee89748 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 4 Aug 2021 18:15:19 +0200 Subject: [PATCH] Update run.sh --- cloudcommander/rootfs/run.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cloudcommander/rootfs/run.sh b/cloudcommander/rootfs/run.sh index 3c572ef9c..6f7efef84 100644 --- a/cloudcommander/rootfs/run.sh +++ b/cloudcommander/rootfs/run.sh @@ -156,8 +156,20 @@ mkdir -p /var/log/nginx && touch /var/log/nginx/error.log # LAUNCH APPS # ############### +if bashio::config.has_value 'CUSTOM_OPTIONS'; then + CUSTOMOPTIONS=$(bashio::config 'CUSTOM_OPTIONS') +else + CUSTOMOPTIONS="" +fi + +if bashio::config.has_value 'DROPBOX_TOKEN'; then + DROPBOX_TOKEN="--dropbox --dropbox-token $(bashio::config 'DROPBOX_TOKEN')" +else + DROPBOX_TOKEN="" +fi + bashio::log.info "Starting..." -./usr/src/app/bin/cloudcmd.mjs & bashio::net.wait_for 8000 localhost 900 || true +./usr/src/app/bin/cloudcmd.mjs '"'$CUSTOMOPTIONS'"' '"'$DROPBOX'"' & bashio::net.wait_for 8000 localhost 900 || true bashio::log.info "Started !" exec nginx