1 # arg 1: the new package version
3 /usr/sbin/groupadd boinc 2>/dev/null || true
4 /usr/sbin/useradd -s /bin/bash -g boinc -d /var/lib/boinc boinc 2>/dev/null || true
6 if [ ! -d /var/lib/boinc ]; then
7 install -d /var/lib/boinc
9 chown -R boinc:boinc /var/lib/boinc
11 echo '>>> Client RPC password can be found in /var/lib/boinc/gui_rpc_auth.cfg'
12 echo '>>> (this file is generated after first run of /etc/rc.d/boinc start).'
14 echo '>>> Remove it from gui_rpc_auth.cfg if you do not want to use password.'
17 # arg 1: the old package version
19 /usr/sbin/userdel boinc
20 /usr/sbin/groupdel boinc
22 echo '>>> If you really do not want to run Boinc in the future, you may completely remove the directory "/var/lib/boinc".'