summarylogtreecommitdiffstats
path: root/agisoft-delighter.install
diff options
context:
space:
mode:
Diffstat (limited to 'agisoft-delighter.install')
-rw-r--r--agisoft-delighter.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/agisoft-delighter.install b/agisoft-delighter.install
index 84af1a236c7..f8eb9ac5fbd 100644
--- a/agisoft-delighter.install
+++ b/agisoft-delighter.install
@@ -13,6 +13,18 @@ post_install() {
echo
}
+post_upgrade() {
+ # 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
+}
+
post_remove() {
rm -rf /opt/agisoft/delighter
rm -d /opt/agisoft 2>/dev/null