# SPDX-License-Identifier: LGPL-3.0-only # SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® post_install() { echo "nostrod and the nostro CLI come from a Flatpak; install it system-wide:" echo " flatpak install --system net.catcrafts.Nostro.flatpakref" echo "(packaging/flatpak/ in nostro's source), or from a local build: flatpak install --system net.catcrafts.Nostro" } post_upgrade() { # A nostrod still running keeps the old files until it ends. systemctl try-restart nostrod.service } pre_remove() { systemctl stop nostrod.service } post_remove() { echo "The bank connections stay in /var/lib/nostro; remove that directory to forget them, and revoke the API keys in the bank's app." }