#!/bin/sh
# Remove the container here (target still exists so the setuid helper is
# available); postuninst runs after files are removed.
CONTAINER="kvsynology"
DOCKER="${SYNOPKG_PKGDEST}/tool/kv-helper"

if [ "${SYNOPKG_PKG_STATUS}" = "UNINSTALL" ]; then
    "${DOCKER}" rm -f "${CONTAINER}" >/dev/null 2>&1 || true
fi
exit 0
