updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / wwwoffle / wwwoffle.install
blob8a403fff7496fe57b969dee7c005de0d6994ac54
1 post_install() {
2   post_upgrade
5 post_upgrade() {
6   echo "ATTENTION WWWOFFLE:"
7   echo "-----------"
8   echo "Set bind-ipv4 = none in wwwoffle.conf if you get ipv4 related warnings."
9   echo "-----------"
10   if [ ! `grep wwwoffle /etc/group` ]; then
11     echo ">>> Adding group wwwoffle."
12     groupadd wwwoffle &> /dev/null;
13   fi
14   id wwwoffle &> /dev/null || \
15     (echo ">>> Adding user wwwoffle." && useradd -g wwwoffle wwwoffle)
16   chown -R wwwoffle:wwwoffle /var/spool/wwwoffle /etc/wwwoffle
19 pre_remove() {
20   echo ">>> Removing user wwwoffle."
21   userdel wwwoffle &> /dev/null
22   echo ">>> Removing group wwwoffle."
23   groupdel wwwoffle &> /dev/null
26 op=$1
27 shift
28 $op $*