Skip to content

Commit

Permalink
fix: update deployment.yaml
Browse files Browse the repository at this point in the history
Remove downloaded model extension
  • Loading branch information
Raymond Pau committed Jun 22, 2023
1 parent de98fc1 commit 40338c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/local-ai/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
auth=$(echo "$line" | awk '{print $2}')
if [ -n "$url" ]; then
filename=$(basename "$url")
filename=$(basename "$url" .bin)
if [ "$FORCE_DOWNLOAD" = false ] && [ -f "$MODEL_DIR/$filename" ]; then
echo "File $filename already exists. Skipping download."
Expand All @@ -70,9 +70,9 @@ spec:
echo "Downloading $filename"
if [ -n "$auth" ]; then
wget -P "$MODEL_DIR" --header "Authorization: Basic $auth" "$url"
wget --header "Authorization: Basic $auth" "$url" -O "$MODEL_DIR/$filename"
else
wget -P "$MODEL_DIR" "$url"
wget "$url" -O "$MODEL_DIR/$filename"
fi
if [ "$?" -ne 0 ]; then
Expand Down

0 comments on commit 40338c6

Please sign in to comment.