#!/bin/bash set -e # Check if the package is being purged (erased entirely including configs) if [ "$1" = "purge" ]; then deluser --quiet fs-spring-boot-kamal || true fi # Run commands during simple remove or upgrade #if [ "$1" = "remove" ] || [ "$1" = "upgrade" ]; then #fi # Reload systemd service configuration files. systemctl daemon-reload # postrm script must exit with 0 exit 0