#!/bin/sh ver_old="$2" if [ "$(apk version -t "$ver_old" '2.3.0-r0')" = '<' ]; then # See https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/11110 cat >&2 <<-EOF * * If you encounter errors "failed to rename ...", do the following: * * rm -rf /usr/lib/zigbee2mqtt * apk fix zigbee2mqtt * EOF fi exit 0