summarylogtreecommitdiffstats
path: root/ualsv.install
blob: b51b85118b88cdc80eb515f439e4e6d1d7f8219f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
	if [ -n "$SUDO_USER" ] || [ -n "$U_HOME" ]; then
		echo " >>> Initializing the ualsv database"
		ualsv --pacman init
	else
		echo -e "\n >>> pacman was not executed via sudo. Manually do 'ualsv --pacman init'\n"
	fi
}
post_upgrade() {
	if [ -n "$SUDO_USER" ] || [ -n "$U_HOME" ]; then
		echo " >>> Updating the ualsv database"
		ualsv --pacman hook
	else
		echo -e "\n >>> pacman was not executed via sudo. Manually do 'ualsv --pacman hook'\n"
	fi
}