mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
23 lines
784 B
Text
23 lines
784 B
Text
# arg 1: the new package version
|
|
post_install() {
|
|
/usr/sbin/groupadd boinc 2>/dev/null || true
|
|
/usr/sbin/useradd -s /bin/bash -g boinc -d /var/lib/boinc boinc 2>/dev/null || true
|
|
|
|
if [ ! -d /var/lib/boinc ]; then
|
|
install -d /var/lib/boinc
|
|
fi
|
|
chown -R boinc:boinc /var/lib/boinc
|
|
|
|
echo '>>> Client RPC password can be found in /var/lib/boinc/gui_rpc_auth.cfg'
|
|
echo '>>> (this file is generated after first run of /etc/rc.d/boinc start).'
|
|
echo '>>> '
|
|
echo '>>> Remove it from gui_rpc_auth.cfg if you do not want to use password.'
|
|
}
|
|
|
|
# arg 1: the old package version
|
|
post_remove() {
|
|
/usr/sbin/userdel boinc
|
|
/usr/sbin/groupdel boinc
|
|
|
|
echo '>>> If you really do not want to run Boinc in the future, you may completely remove the directory "/var/lib/boinc".'
|
|
}
|