diff --git a/home-panel/rootfs/etc/services.d/api/run b/home-panel/rootfs/etc/services.d/api/run index a6d542e..3b5668d 100644 --- a/home-panel/rootfs/etc/services.d/api/run +++ b/home-panel/rootfs/etc/services.d/api/run @@ -11,11 +11,6 @@ hass.log.info "Run API.." # shellcheck disable=SC2164 cd /opt/api -local DB_PATH -local CONFIG_PATH -local SSL_PATH_CERT -local SSL_PATH_KEY - DB_PATH=/config/home-panel.db CONFIG_PATH=/config/$(hass.config.get 'config_file') @@ -24,4 +19,9 @@ if hass.config.true 'ssl'; then SSL_PATH_KEY="/ssl/$(hass.config.get 'keyfile')" fi +export DB_PATH +export CONFIG_PATH +export SSL_PATH_CERT +export SSL_PATH_KEY + exec node index.js