Skip to content

Commit 1386b35

Browse files
committed
Source OSG config only if it exists
1 parent 34e2721 commit 1386b35

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/gridftp-hdfs-standalone.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22

3-
. /usr/share/osg/sysconfig/globus-gridftp-server-plugin
3+
OSG_CONFIG= /usr/share/osg/sysconfig/globus-gridftp-server-plugin
4+
[ -e $OSG_CONFIG ] && . $OSG_CONFIG
45

56
export CLASSPATH=$CLASSPATH
67

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22

3-
. /usr/share/osg/sysconfig/globus-gridftp-server-plugin
3+
OSG_CONFIG= /usr/share/osg/sysconfig/globus-gridftp-server-plugin
4+
[ -e $OSG_CONFIG ] && . $OSG_CONFIG
45

56
exec /usr/sbin/globus-gridftp-server -c @sysconfdir_resolved@/gridftp-hdfs/gridftp-inetd.conf -dsi hdfs
67

0 commit comments

Comments
 (0)