summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/foldingathome/foldingathome.install
diff options
context:
space:
mode:
authorGreg Frost <gregfrost1@bigpond.com>2009-08-30 02:44:16 (GMT)
committerGreg Frost <gregfrost1@bigpond.com>2009-08-30 02:44:16 (GMT)
commit9e577c49ff4c553c198bdefa594f211e2b2bbc1d (patch)
tree075faf696d0586096adaccdf6c14f56802279265 /abs/extra-testing/community/foldingathome/foldingathome.install
parent9dd5c92a9521a5fb3a5000b88a7d8c4b97339caf (diff)
downloadlinhes_pkgbuild-9e577c49ff4c553c198bdefa594f211e2b2bbc1d.zip
linhes_pkgbuild-9e577c49ff4c553c198bdefa594f211e2b2bbc1d.tar.gz
linhes_pkgbuild-9e577c49ff4c553c198bdefa594f211e2b2bbc1d.tar.bz2
foldingathome: change location to /myth/foldingathome/
Diffstat (limited to 'abs/extra-testing/community/foldingathome/foldingathome.install')
-rw-r--r--abs/extra-testing/community/foldingathome/foldingathome.install11
1 files changed, 6 insertions, 5 deletions
diff --git a/abs/extra-testing/community/foldingathome/foldingathome.install b/abs/extra-testing/community/foldingathome/foldingathome.install
index 3ecc7c9..8bcfaf3 100644
--- a/abs/extra-testing/community/foldingathome/foldingathome.install
+++ b/abs/extra-testing/community/foldingathome/foldingathome.install
@@ -1,20 +1,23 @@
post_install() {
# Check for an R5.5 fah installation.
r5_fah_dir=/myth/folding@home
- r6_fah_dir=/myth/folding_$(hostname)
+ r6_fah_dir=/myth/foldingathome/$(hostname)
if [ -d "$r5_fah_dir" ] ; then
if [ -d "$r6_fah_dir" ] ; then
cat << 'EOM'
--> You have an R5.5 and an R6 folding directory at the same time!
--> you should manually delete the R5.5 directory:
--> $r5_fah_dir
+ --> The directroy used on R6 will be:
+ --> $r6_fah_dir
EOM
else
+ mkdir -p /myth/foldingathome
mv $r5_fah_dir $r6_fah_dir
fi
else
if [ ! -d "$r6_fah_dir" ] ; then
- mkdir $r6_fah_dir
+ mkdir -p $r6_fah_dir
cat > $r6_fah_dir/client.cfg << 'EOM'
[settings]
username=LinHES
@@ -33,12 +36,10 @@ EOM
fi
/sbin/add_service.sh fah
- sleep 5
- /sbin/sv -v start fah
}
pre_remove() {
- /sbin/sv stop fah
+ sv stop fah
/sbin/remove_service.sh fah
}