mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 14:54:07 +02:00
Fix cloudcommander startup path
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
|
|
||||||
|
## 19.3.2 (2026-02-04)
|
||||||
|
- Fix startup when cloudcmd.mjs is missing in upstream image
|
||||||
|
|
||||||
## 19.3.1 (2026-02-04)
|
## 19.3.1 (2026-02-04)
|
||||||
- Update to latest version from coderaiser/cloudcmd (changelog : https://github.com/coderaiser/cloudcmd/releases)
|
- Update to latest version from coderaiser/cloudcmd (changelog : https://github.com/coderaiser/cloudcmd/releases)
|
||||||
|
|
||||||
|
|||||||
@@ -104,4 +104,4 @@ schema:
|
|||||||
slug: cloudcommander
|
slug: cloudcommander
|
||||||
udev: true
|
udev: true
|
||||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/cloudcommander
|
url: https://github.com/alexbelgium/hassio-addons/tree/master/cloudcommander
|
||||||
version: "19.3.1"
|
version: "19.3.2"
|
||||||
|
|||||||
@@ -82,7 +82,17 @@ fi
|
|||||||
bashio::log.info "Starting..."
|
bashio::log.info "Starting..."
|
||||||
|
|
||||||
cd /
|
cd /
|
||||||
./usr/src/app/bin/cloudcmd.mjs '"'"$DROPBOX_TOKEN""$CUSTOMOPTIONS"'"' &
|
if [ -f /usr/src/app/bin/cloudcmd.mjs ]; then
|
||||||
|
CLOUDCMD_BIN=/usr/src/app/bin/cloudcmd.mjs
|
||||||
|
elif [ -f /usr/src/app/bin/cloudcmd.js ]; then
|
||||||
|
CLOUDCMD_BIN=/usr/src/app/bin/cloudcmd.js
|
||||||
|
elif command -v cloudcmd >/dev/null 2>&1; then
|
||||||
|
CLOUDCMD_BIN=cloudcmd
|
||||||
|
else
|
||||||
|
bashio::log.error "Cloud Commander binary not found in /usr/src/app/bin or PATH."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
"$CLOUDCMD_BIN" '"'"$DROPBOX_TOKEN""$CUSTOMOPTIONS"'"' &
|
||||||
bashio::net.wait_for 8000 localhost 900 || true
|
bashio::net.wait_for 8000 localhost 900 || true
|
||||||
bashio::log.info "Started !"
|
bashio::log.info "Started !"
|
||||||
exec nginx
|
exec nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user