Update vmware-deliver-deb-package.sh

This commit is contained in:
Zakaria Guennoune 2022-04-14 10:44:09 +02:00 committed by GitHub
parent 8806b05d5f
commit c4578c7dd5
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
#!/bin/bash
VERSION="$1"
VERSION="$3"
BULLSEYEPACKAGES=`echo *.deb`
for i in $BULLSEYEPACKAGES
do
echo "Sending $i\n"
curl -u \"$NEXUS_USERNAME:$NEXUS_PASSWORD\" -H "Content-Type: multipart/form-data" --data-binary \"@/$i\" "https://apt.centreon.com/repository/$VERSION"
curl -u \"$1:$2\" -H "Content-Type: multipart/form-data" --data-binary \"@/$i\" "https://apt.centreon.com/repository/$VERSION"
done