Skip to content

Commit ed49b5c

Browse files
committed
cadc-java: fix init to detect no certs and cleanly skip
1 parent 6b395ae commit ed49b5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cadc-java/src/cadc-java-init

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ fi
1919
mkdir -p $HOME/.ssl
2020
chmod 700 $HOME/.ssl
2121
for pcf in $CONFDIR/*.pem; do
22+
[ -e "$pcf" ] || continue
2223
echo "Link proxy certificate: $pcf"
23-
ln -s $CONFDIR/cadcproxy.pem $HOME/.ssl/
24+
ln -s $pcf $HOME/.ssl/
2425
done
2526

2627
test -e /config && (test -e $HOME/config || ln -s /config $HOME/config)

0 commit comments

Comments
 (0)