Browse Source

Add more logging

Joachim M. Giæver 1 year ago
parent
commit
2f785c92d8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/hooks/connect-plug-zui-store

+ 2 - 1
src/hooks/connect-plug-zui-store

@@ -15,12 +15,13 @@ if snapctl is-connected zui-store; then
 		lprint "ZUI-store is empty, copying over data: $(ls "${SNAP_DATA}") to «${ZUI_STORE}»"
 		cp -rf "${SNAP_DATA}/"* "${ZUI_STORE}"
 		rm -rf "${ZUI_STORE}/.ext-config"
-		mv -f "${ZUI_STORE}/logs" "${ZUI_STORE}/.z2m-logs" >2 /dev/null; true
+		mv -f "${ZUI_STORE}/logs" "${ZUI_STORE}/.z2m-logs"
 		if [[ ! -d "${ZUI_STORE}/.z2m-logs" ]]; then
 			mkdir "${ZUI_STORE}/.z2m-logs"
 		fi
 		mv -f "${ZUI_STORE}/zwave"*.{log,json} "${ZUI_STORE}/.z2m-logs" 2> /dev/null; true
 		lprint "Everything seems to be in place now... Exit connection the initiate the daemonizing voting"
+		lprint "ZUI-STORE: $(ls -a "${ZUI_STORE}")"
 		if [ -s "${ZUI_STORE}/.install.hook.service" ]; then
 			if [ "$(cat "${ZUI_STORE}/.install.hook.service")" == "enable" ]; then
 				lprint "ZUI will be enabled. Disable ${SNAP_NAME}."