Browse Source

Re-build instead

Joachim M. Giæver 2 years ago
parent
commit
71455f3441
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/hooks/post-refresh

+ 3 - 1
src/hooks/post-refresh

@@ -20,4 +20,6 @@ if [ -d $(dirname "${PRIORITY_DIR}") ]; then
 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
+# 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"