summaryrefslogtreecommitdiff
path: root/libre/abs-libre/abs.install
diff options
context:
space:
mode:
Diffstat (limited to 'libre/abs-libre/abs.install')
-rw-r--r--libre/abs-libre/abs.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/libre/abs-libre/abs.install b/libre/abs-libre/abs.install
new file mode 100644
index 000000000..ac814c2fc
--- /dev/null
+++ b/libre/abs-libre/abs.install
@@ -0,0 +1,13 @@
+pre_upgrade() {
+ if [ "$(vercmp $2 2.3.2-1)" -lt 0 ]; then
+ echo "==> Fixing potential ABS tree permission issues (this may take a while...)"
+
+ for dir in core extra community testing; do
+ if [ -d /var/abs/$dir ]; then
+ find /var/abs/$dir -type d -exec chown root:root {} \;
+ find /var/abs/$dir -type d -exec chmod 755 {} \;
+ fi
+ done
+ fi
+}
+