[csw-devel] SF.net SVN: opencsw:[469] catalog_signatures/bin/signing_daemon
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Thu Jul 21 05:24:03 CEST 2011
Revision: 469
http://opencsw.svn.sourceforge.net/opencsw/?rev=469&view=rev
Author: bdwalton
Date: 2011-07-21 03:24:03 +0000 (Thu, 21 Jul 2011)
Log Message:
-----------
dynamically determine the value for APP_HOME in the top level script
Signed-off-by: Ben Walton <bwalton at opencsw.org>
Modified Paths:
--------------
catalog_signatures/bin/signing_daemon
Modified: catalog_signatures/bin/signing_daemon
===================================================================
--- catalog_signatures/bin/signing_daemon 2011-07-21 03:23:44 UTC (rev 468)
+++ catalog_signatures/bin/signing_daemon 2011-07-21 03:24:03 UTC (rev 469)
@@ -2,7 +2,10 @@
unset DISPLAY
-APP_HOME=/opt/catalog_signatures
+#dynamically determine where we live...
+MYPATH="$(readlink -f $(dirname $0))"
+APP_HOME="${MYPATH/bin/}"
+
APP_BIN=${APP_HOME}/bin
APP_DAEMON=${APP_BIN}/http_gpg_daemon
APP_GPG=${APP_HOME}/etc/gpg
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list