blob: 54c3c33ac1e8015190774ef6a12e90b4bd383533 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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
}
|