# arg 1:  the new package version
post_install() {
  # Setting sticky bit
  # Loosely based on: https://unix.stackexchange.com/a/166000
  chmod +t /home/public

  echo "Directory /home/public set up with proper ACLs. Don't forget to add any user to the 'public' group:"
  echo ""
  echo "$ usermod -a -G public USER"
  echo ""
  echo "Logged in users will need to log out and in again before the group ownership is applied."
  echo ""
}

## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade() {
  # Setting sticky bit
  # Loosely based on: https://unix.stackexchange.com/a/166000
  chmod +t /home/public

  echo "Directory /home/public set up with proper ACLs. Don't forget to add any user to the 'public' group:"
  echo ""
  echo "$ usermod -a -G public USER"
  echo ""
  echo "Logged in users will need to log out and in again before the group ownership is applied."
  echo ""
}

## arg 1:  the old package version
#pre_remove() {
    # do something here
#}

## arg 1:  the old package version
#post_remove() {
    # do something here
#}
