summarylogtreecommitdiffstats
path: root/agisoft-delighter.install
diff options
context:
space:
mode:
Diffstat (limited to 'agisoft-delighter.install')
-rw-r--r--agisoft-delighter.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/agisoft-delighter.install b/agisoft-delighter.install
new file mode 100644
index 00000000000..84af1a236c7
--- /dev/null
+++ b/agisoft-delighter.install
@@ -0,0 +1,25 @@
+post_install() {
+ # Set the correct permission
+ chmod -R g=u /opt/agisoft/delighter
+ chmod -R o=u /opt/agisoft/delighter
+ chmod -R g-w /opt/agisoft/delighter
+ chmod -R o-w /opt/agisoft/delighter
+ chmod -R g=u /usr/share/licenses/agisoft-delighter/licenses
+ chmod -R o=u /usr/share/licenses/agisoft-delighter/licenses
+ chmod -R g-w /usr/share/licenses/agisoft-delighter/licenses
+ chmod -R o-w /usr/share/licenses/agisoft-delighter/licenses
+ echo
+ echo "The launcher is called agisoft-delighter"
+ echo
+}
+
+post_remove() {
+ rm -rf /opt/agisoft/delighter
+ 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
+}