blob: d30d9c74984333845a306fc3fd850b3568ba70f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
CLEAR="$(tput sgr0)"
YELLOW="${bold}$(tput setaf 3)"
post_install() {
groupadd informant 2>/dev/null
touch /var/cache/informant.dat
chgrp informant /var/cache/informant.dat
chmod 664 /var/cache/informant.dat
printf "%sNOTE%s: Add yourself to group \"informant\" to avoid the need for sudo\n" "$YELLOW" "$CLEAR"
}
post_upgrade() {
post_install
#new_ver=$1
old_ver=$2
if [[ $old_ver =~ ^0\.[01]\.* ]]; then
printf "%sWARNING%s: This update changes the format of the /var/cache/informant.dat file, you will need to re-read all news items.\n" "$YELLOW" "$CLEAR"
fi
}
|