summarylogtreecommitdiffstats
path: root/agisoft-delighter.install
diff options
context:
space:
mode:
authordobedobedo2020-11-11 09:37:45 +0800
committerdobedobedo2020-11-11 09:37:45 +0800
commit1e7809de1a13a062ce0a380e7092d2a4930cb8bd (patch)
treead39ff6444f93abb17f3161aa99a1672632af5ab /agisoft-delighter.install
parent9a3ec29884eed5e04f764e49342c58e84e3ffdd9 (diff)
downloadaur-1e7809de1a13a062ce0a380e7092d2a4930cb8bd.tar.gz
Update post-upgrade script to fix permission issue
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