diff options
Diffstat (limited to 'agisoft-metashape.install')
-rw-r--r-- | agisoft-metashape.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/agisoft-metashape.install b/agisoft-metashape.install index 01cc11c38d73..7cbffaac60a7 100644 --- a/agisoft-metashape.install +++ b/agisoft-metashape.install @@ -11,6 +11,22 @@ post_install() { echo } +pre_upgrade() { + echo "Deactivating the product..." + agisoft-metashape --deactivate 2>/dev/null +} + +post_upgrade() { + echo + echo "This upgrade change the rehostable directory for activation" + echo + echo "Therefore, we deactivated the licence to avoid it becomes invalid" + echo + echo "Please use sudo agisoft-metashape --activate to reactivate your licence" + echo + echo "This behaviour will be removed in the next release" +} + pre_remove() { echo "Deactivating the product..." agisoft-metashape --deactivate 2>/dev/null |