summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordobedobedo2020-11-11 09:28:35 +0800
committerdobedobedo2020-11-11 09:28:35 +0800
commite553af026664fd54131afdf5b7021a58f3cd0bb9 (patch)
tree65c1dc8f23ecf08099e2f253228dd416fae5b0c9
parent931ae93895f9b2ee650e3c022e8c31014a48f61e (diff)
downloadaur-e553af026664fd54131afdf5b7021a58f3cd0bb9.tar.gz
Update .install script to fix the post-upgrade permission issue
-rw-r--r--agisoft-metashape-pro.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/agisoft-metashape-pro.install b/agisoft-metashape-pro.install
index 1a225f61654..a56433d6cd8 100644
--- a/agisoft-metashape-pro.install
+++ b/agisoft-metashape-pro.install
@@ -19,6 +19,18 @@ post_install() {
echo
}
+post_upgrade() {
+ # 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
+}
+
pre_remove() {
echo "Deactivating the product..."
agisoft-metashape-pro --deactivate 2>/dev/null