all_off="$(tput sgr0)" bold="${all_off}$(tput bold)" yellow="${bold}$(tput setaf 3)" blue="${bold}$(tput setaf 4)" green="${bold}$(tput setaf 2)" _instructions() { printf "${yellow}==>${all_off} ${bold}ATENTION:${all_off}\n" printf "${blue} ->${all_off} Please run: '${bold}sudo uhub-passwd /etc/uhub/users.db create${all_off}' to create users database.\n" } post_install() { _instructions } post_remove() { paths=(/etc/uhub /var/lib/uhub /var/log/uhub) first=true for path in ${paths[@]}; do if [ -d $path ]; then if $first; then first=false printf "${green}==>${all_off} ${bold}Leftover Paths:${all_off}\n" fi printf "${blue} -> ${all_off} ${bold}$path${all_off}\n" fi done }