2 echo -n "adding calendarserver system group... "
3 groupadd caldavd && echo -n "done."
6 echo -n "adding calendarserver system user... "
7 useradd -c "calendarserver daemon" -d /var/spool/caldavd -g caldavd -s /bin/false caldavd && echo -n "done."
10 passwd -l caldavd &>/dev/null
12 for dir in spool run log; do
13 mkdir -p /var/$dir/caldavd
14 chown caldavd:caldavd /var/$dir/caldavd
17 echo ">> You have to remount the filesystem which contains /var with user_xattr"
18 echo ">> Place 'calendarserver' in DAEMONS= in /etc/rc.conf to enable calendarserver on system boot."
22 echo -n -e "\nremoving caldavd system user... "
23 userdel caldavd && echo "done."
25 echo "Not removing tmp and log directories"