Joachim M. Giæver hace 2 años
padre
commit
4d5a0d78b9
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/helper/functions

+ 3 - 2
src/helper/functions

@@ -50,8 +50,9 @@ function cpy_2_zui {
 				echo "Failed copying data from ${SNAP_COMMON}/zui-store" >&2
 				return 1
 			fi
-			mv "${SNAP_COMMON}/zui-store/zwave*.{log,json}" "${SNAP_COMMON}/zui-store/logs"
-			mv "${SNAP_COMMON}/zui-store/logs" "${SNAP_COMMON}/zui-store/z2m-logs"
+			mkdir -p "${SNAP_COMMON}/zui-store/logs/zwave-js"
+			mv "${SNAP_COMMON}/zui-store/zwave"*.{log,json} "${SNAP_COMMON}/zui-store/logs/zwave-js"
+			mv "${SNAP_COMMON}/zui-store/logs" "${SNAP_COMMON}/zui-store/.old-z2m-logs"
 			rm -rf "${SNAP_COMMON}/zui-store/.ext-config"
 
 		else