summarylogtreecommitdiffstats
path: root/java-design-patterns.install
blob: ad8df4ae9d4dba30403107c2d11c493c9d7cecb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
  printf "$(tput setaf 4)Java Design Patterns has been installed into /opt/java-design-patterns$(tput sgr0)\n"
  printf "$(tput setaf 4)This folder has root permissions, so keep in mind you will not be able to modify anything in this directory.$(tput sgr0)\n"
  printf "$(tput setaf 4)If you intend to modify it as regular user, change folder's owner as follow:$(tput sgr0)\n"
  printf "$(tput setaf 2)chown -R <user>:<user> /opt/java-design-patterns$(tput sgr0)\n"
  printf "$(tput setaf 4)Note: You can copy the folder to a user writable destination in order to preserve the original sources and permissions.$(tput sgr0)\n"
}

post_upgrade() {
  post_install
}

post_remove() {
  printf "$(tput setaf 4)If you had changed permissions to folder /opt/java-design-patterns is possible you need to delete it manually.$(tput sgr0)\n"
}