summaryrefslogtreecommitdiff
path: root/biology/linux-foldingathome/scripts/FoldingAtHome
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2007-09-23 05:45:41 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2007-09-23 05:45:41 +0000
commite713c30f0cb4f83d0ec9d3d2a9ec1fed43b70b00 (patch)
treed6a42aaa568670020f994769bb86f592f8796101 /biology/linux-foldingathome/scripts/FoldingAtHome
parent- Update to 0.9 (diff)
biology/linux-foldingathome needs to run as root?
(also: update to 5.0.4) Upon installing FoldingAtHome I ran the software from a user account only to find that I was stuck in a loop of trying to enter configuration options. Shortly thereafter I realized that it was trying to write to /usr/local/share/foldingathome, and therefore requires being run as root to write there unless one changes permissions there. Seing as this isn't installed with a startup script for daemonization, and running as root seems a little excessive for this application, should this be adapted to run from a user account or set up to be able to start at boot? And from maintainer: This diff updates the port to version 5.04, and adds support to running as normal user using ~/.fah directory. PR: ports/113335 Submitted by: James Snyder <jbsnyder@fanplastic.org> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=199937
Diffstat (limited to '')
-rw-r--r--biology/linux-foldingathome/scripts/FoldingAtHome6
1 files changed, 4 insertions, 2 deletions
diff --git a/biology/linux-foldingathome/scripts/FoldingAtHome b/biology/linux-foldingathome/scripts/FoldingAtHome
index 3bd56fcb9f39..c2c2a72dc805 100644
--- a/biology/linux-foldingathome/scripts/FoldingAtHome
+++ b/biology/linux-foldingathome/scripts/FoldingAtHome
@@ -1,5 +1,7 @@
#!/bin/sh
+FAHDIR=~/.fah
CURDIR=`pwd`
-cd DATADIR
-nice -n 20 ./BINNAME -freeBSD
+mkdir $FAHDIR
+cd $FAHDIR
+nice -n 20 /DATADIR/BINNAME -freeBSD
cd $CURDIR