git: ffd16404a1d8 - main - sysutils/zfs-snapshot-mgmt: use pkg-message to show message on remove
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Jul 2022 12:58:31 UTC
The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=ffd16404a1d8a0013902288e7ae01a9f08803bbb commit ffd16404a1d8a0013902288e7ae01a9f08803bbb Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2022-07-27 12:52:59 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2022-07-27 12:52:59 +0000 sysutils/zfs-snapshot-mgmt: use pkg-message to show message on remove --- sysutils/zfs-snapshot-mgmt/files/pkg-message.in | 6 ++++++ sysutils/zfs-snapshot-mgmt/pkg-deinstall | 10 ---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/sysutils/zfs-snapshot-mgmt/files/pkg-message.in b/sysutils/zfs-snapshot-mgmt/files/pkg-message.in index 743b1cdc8341..8b9ac6273efe 100644 --- a/sysutils/zfs-snapshot-mgmt/files/pkg-message.in +++ b/sysutils/zfs-snapshot-mgmt/files/pkg-message.in @@ -9,5 +9,11 @@ To actually turn on the automatic snapshots you have to do the following: See zfs-snapshot-mgmt(8) manpage for more details. EOM +}, +{ type: remove + message: <<EOM +Remember to remove zfs-snapshot-mgmt entry from cron configuration. +Otherwise the system will be constantly trying to call the deinstalled script. +EOM } ] diff --git a/sysutils/zfs-snapshot-mgmt/pkg-deinstall b/sysutils/zfs-snapshot-mgmt/pkg-deinstall deleted file mode 100644 index 80fcc49efc65..000000000000 --- a/sysutils/zfs-snapshot-mgmt/pkg-deinstall +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -if [ "$2" != "POST-DEINSTALL" ]; then - exit 0 -fi - -echo -echo "Remember to remove zfs-snapshot-mgmt entry from cron configuration." -echo -n "Otherwise the system will be constantly trying to call the deinstalled" -echo " script."