Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. pre_upgrade() {
  2. if [ "$(vercmp $2 2.3.2-1)" -lt 0 ]; then
  3. echo "==> Fixing potential ABS tree permission issues (this may take a while...)"
  4.  
  5. for dir in core extra community testing; do
  6. if [ -d /var/abs/$dir ]; then
  7. find /var/abs/$dir -type d -exec chown root:root {} \;
  8. find /var/abs/$dir -type d -exec chmod 755 {} \;
  9. fi
  10. done
  11. fi
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement