summarylogtreecommitdiffstats
path: root/agisoft-metashape-pro.install
diff options
context:
space:
mode:
Diffstat (limited to 'agisoft-metashape-pro.install')
-rw-r--r--agisoft-metashape-pro.install36
1 files changed, 36 insertions, 0 deletions
diff --git a/agisoft-metashape-pro.install b/agisoft-metashape-pro.install
new file mode 100644
index 00000000000..1a225f61654
--- /dev/null
+++ b/agisoft-metashape-pro.install
@@ -0,0 +1,36 @@
+post_install() {
+ # Set the correct permission
+ chmod -R g=u /opt/agisoft/metashape-pro
+ chmod -R o=u /opt/agisoft/metashape-pro
+ chmod -R g-w /opt/agisoft/metashape-pro
+ chmod -R o-w /opt/agisoft/metashape-pro
+ chmod -R g=u /usr/share/licenses/agisoft-metashape-pro/licenses
+ chmod -R o=u /usr/share/licenses/agisoft-metashape-pro/licenses
+ chmod -R g-w /usr/share/licenses/agisoft-metashape-pro/licenses
+ chmod -R o-w /usr/share/licenses/agisoft-metashape-pro/licenses
+ echo
+ echo "The launcher is called agisoft-metashape-pro"
+ echo
+ echo "Run the following command to activate the product"
+ echo
+ echo "sudo agisoft-metashape-pro --activate 11111-22222-33333-44444-55555"
+ echo
+ echo "NOTE: the number after "--activate" is your node-locked license"
+ echo
+}
+
+pre_remove() {
+ echo "Deactivating the product..."
+ agisoft-metashape-pro --deactivate 2>/dev/null
+}
+
+post_remove() {
+ rm -rf /opt/agisoft/metashape-pro
+ rm -d /opt/agisoft 2>/dev/null
+ echo
+ echo "The users data were kept at the below locations"
+ echo "\$HOME/.agisoft"
+ echo "\$HOME/.config/Agisoft"
+ echo "\$HOME/.local/share/Agisoft"
+ echo
+}