Skip to content

Commit

Permalink
Fix keytool error at startup (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
olevitt authored Apr 7, 2023
1 parent 3bf12a8 commit 570d00d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions onyxia-api/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/bin/bash

# Import CA certificates to Java keystore
for file in $CACERTS_DIR/*
do
echo "Adding $file to keystore"
keytool -import -cacerts -trustcacerts -noprompt -storepass changeit -alias $(basename $file) -file $file
done
if [[ -n "$CACERTS_DIR" ]]; then
for file in $CACERTS_DIR/*
do
if [ -f "$file" ]
then
echo "Adding $file to keystore"
keytool -import -cacerts -trustcacerts -noprompt -storepass changeit -alias $(basename $file) -file $file
fi
done
fi

# Run application
java -jar /app.jar

0 comments on commit 570d00d

Please sign in to comment.