# Colors #note() { # printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n" #} note() { printf "${BLUE}==>${ALL_OFF}${BOLD} NOTE:${ALL_OFF} ${1}\n" } ALL_OFF="$(tput sgr0)" BOLD="$(tput bold)" BLUE="${BOLD}$(tput setaf 4)" GREEN="${BOLD}$(tput setaf 2)" post_install() { mkdir /var/lib/nfsen && chmod 775 /var/lib/nfsen note 'To complete the installation, run:' note ' cd /usr/share/webapps/nfsen' note ' su -c "./install.pl /etc/nfsen/nfsen.conf"' note '' note 'For more information on installation and configuration, see:' note ' /usr/share/doc/nfsen/README.pkg and others' note '' } post_upgrade() { note '' note 'To complete the update, run:' note ' cd /usr/share/webapps/nfsen' note ' su -c "./install.pl /etc/nfsen/nfsen.conf"' note '' note 'For more information on installation and configuration, see:' note ' /usr/share/doc/nfsen/README.pkg and others' note '' }