Easy upgrade
Yea that upgrade is easy to start by
omv-update && omv-release-upgrade
but it stopped on my system with the message that sed had an issue within configuration step of openmediavault.
Expensive mistake in openmediavault.postinst script
Well either there was really a mistake, or my /etc/openmediavault/config.xml file was simple wrong at the position to query the /system/notification/notifications/id in file /var/lib/dpkg/info/openmediavault.postinst.
Issue was
xmlstarlet sel -t -m "/config/system/notification/notifications/*" -v "name(.)" -n -b /etc/openmediavault/config.xml | xmlstarlet unesc
didn’t found the id in my config.xml. So I changed it after hours of searching to
xmlstarlet sel -t -m "/config/system/notification/notifications/*" -v "id" -n /etc/openmediavault/config.xml | xmlstarlet unesc
Take a look to the
if dpkg --compare-versions "$2" lt-nl "3.0.15"; then
# Modify the notification settings.
xmlstarlet sel -t -m "/config/system/notification/notifications/*" \
-v "id" -n \
${OMV_CONFIG_FILE} | xmlstarlet unesc |
while read id; do
enable=$(omv_config_get "/config/system/notification/notifications/${id}")
object="<uuid>$(omv_uuid)</uuid>"
object="${object}<id>${id}</id>"
object="${object}<enable>${enable}</enable>"
omv_config_add_node_data "/config/system/notification/notifications" "notification" "${object}"
omv_config_delete "/config/system/notification/notifications/${id}"
done
After this small change it’s working and the package openmediavault is configured successful.