updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / sabayon / sabayon.install
blob582e6a01621e715651c2a829f02d71eef018604a
1 post_install() {
2   groupadd -r sabayon &>/dev/null
3   useradd -r -g sabayon -d /var/lib/sabayon -s /bin/false sabayon &>/dev/null
4   xdg-icon-resource forceupdate
7 post_upgrade() {
8   getent group sabayon >/dev/null 2>&1 || groupadd -r sabayon &>/dev/null
9   getent passwd sabayon >/dev/null 2>&1 || useradd -r -g sabayon -d /var/lib/sabayon -s /bin/false sabayon &>/dev/null
10   xdg-icon-resource forceupdate
13 post_remove() {
14   if getent passwd sabayon >/dev/null 2>&1; then
15     userdel sabayon
16   fi
17   if getent group sabayon >/dev/null 2>&1; then
18     groupdel sabayon
19   fi
20   xdg-icon-resource forceupdate