|
@@ -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}."
|