summaryrefslogtreecommitdiff
path: root/libre/abs-libre/abs.install
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-22 23:13:01 +0000
committerroot <root@rshg047.dnsready.net>2011-07-22 23:13:01 +0000
commitb57c1def9a907b81a49aa91eeb39c9321763c276 (patch)
tree1d056a9ceb1c5ab57a9344548d8ab2a273f09910 /libre/abs-libre/abs.install
parent34b339c5913a55cb5bac8a502696fcd3f54aac0f (diff)
Fri Jul 22 23:13:01 UTC 2011
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
+}
+