421a0fa541
When the mirror returns a error, it was trying to interpret the error message (e.g. <html><title>Internal server error..) as a download link. By using -f on curl we get an empty reply and an exit code, which, as we run in set -e mode, aborts. Change-Id: Ibaa39aedb7db286f859c4b090114c6a233b150c7
15 lines
356 B
Bash
Executable File
15 lines
356 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# Add hpdsa repository
|
|
echo 'deb https://downloads.linux.hp.com/SDR/repo/ubuntu-hpdsa' $DIB_RELEASE ' main' \
|
|
>> /etc/apt/sources.list.d/ubuntu-hpdsa.list
|
|
|
|
# Add the key
|
|
curl -f -s https://downloads.linux.hp.com/SDR/hpPublicKey2048_key1.pub | apt-key add -
|