浏览代码

Ensure EXT-CONF is set during refresh

Joachim M. Giæver 3 年之前
父节点
当前提交
ca3af5dc9b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/hooks/post-refresh

+ 1 - 1
src/hooks/post-refresh

@@ -22,4 +22,4 @@ fi
 # Update references to the external config directory
 # sed -iE "s#$(dirname ${SNAP_DATA})/(current|[0-9]+)#${SNAP_DATA}/#g" $ZWAVEJS_EXTERNAL_CONFIG/devices/index.json
 # Discussed with Al Calzone, lead dev of Zwavejs, can just be deleted and re-build
-rm "${ZWAVEJS_EXTERNAL_CONFIG}/devices/index.json"
+rm "${ZWAVEJS_EXTERNAL_CONFIG-${SNAP_DATA}/.ext-config}/devices/index.json"