#!/bin/sh
# Required by DSM, deliberately empty.
#
# ⛔ Without this file DSM refuses to upgrade the package at all:
#
#     261  package does not have preupgrade / postupgrade script
#
# Measured 2026-09-12 on three machines -- DS218j (DSM 7.3, armv7), an x86_64
# box (DSM 7.2.2) and a DS414 (DSM 6) -- and it is not a corner case: the
# refusal happens for root and for Package Center alike, so every upgrade
# path was blocked and the only way forward was to remove the package by hand
# and install it again. DSM 6 does not need these; DSM 7 does.
#
# ⭐ Empty is the normal shape, not a shortcut. 44 of the 45 packages on that
# DS218j carry one (the odd one out was ours), and Apache2.4's is exactly
# these two lines. Some packages do put logic here -- ActiveBackup refuses an
# upgrade from here when a prerequisite is missing -- but nothing we need
# belongs here today.
#
# ⚠️ What must NOT move into this file: the database backup. That lives in
# preuninst, and preuninst still runs. The upgrade sequence DSM actually
# performs, read from /var/log/packages on a package that has all of them:
#
#     start-stop-status stop → preupgrade → preuninst → (package dir removed)
#     → postuninst → (scripts and conf replaced) → postinst → postupgrade
#     → start-stop-status start
#
# So these two wrap the existing sequence; they do not replace any part of
# it. Moving the backup here would take it away from the only place that has
# been proven to restore a host.
exit 0
