Joachim M. Giæver 3 лет назад
Родитель
Сommit
2f785c92d8
1 измененных файлов с 2 добавлено и 1 удалено
  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}»"
 		lprint "ZUI-store is empty, copying over data: $(ls "${SNAP_DATA}") to «${ZUI_STORE}»"
 		cp -rf "${SNAP_DATA}/"* "${ZUI_STORE}"
 		cp -rf "${SNAP_DATA}/"* "${ZUI_STORE}"
 		rm -rf "${ZUI_STORE}/.ext-config"
 		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
 		if [[ ! -d "${ZUI_STORE}/.z2m-logs" ]]; then
 			mkdir "${ZUI_STORE}/.z2m-logs"
 			mkdir "${ZUI_STORE}/.z2m-logs"
 		fi
 		fi
 		mv -f "${ZUI_STORE}/zwave"*.{log,json} "${ZUI_STORE}/.z2m-logs" 2> /dev/null; true
 		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 "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 [ -s "${ZUI_STORE}/.install.hook.service" ]; then
 			if [ "$(cat "${ZUI_STORE}/.install.hook.service")" == "enable" ]; then
 			if [ "$(cat "${ZUI_STORE}/.install.hook.service")" == "enable" ]; then
 				lprint "ZUI will be enabled. Disable ${SNAP_NAME}."
 				lprint "ZUI will be enabled. Disable ${SNAP_NAME}."