dataset/seed/vector/manual/image/postinstall/vector.sh

17 lines
821 B
Bash
Raw Normal View History

2023-06-23 08:12:05 +02:00
#FIXME signature...
ORI_PWD=$PWD
cd "$REPO_DIR"
FEDO_VERSION=$(bash -c ". ../os-release; echo \$VERSION_ID")
URL="https://repositories.timber.io/public/vector/config.rpm.txt?distro=fedora&codename=Workstation\ Edition&version=$FEDO_VERSION&arch=$(uname -m)}"
wget -q "$URL" -O vector.repo
sed -i 's/repo_gpgcheck=1/repo_gpgcheck=0/g' vector.repo
sed -i 's/sslverify=1/sslverify=0/g' vector.repo
#sed -i "s@sslcacert=@sslcacert=$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP@g" vector.repo
sed -i "s@gpgkey=https://repositories.timber.io/public/vector/@gpgkey=file://$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/etc/pki/rpm-gpg/@g" vector.repo
cd ../pki/rpm-gpg
wget -q https://repositories.timber.io/public/vector/gpg.3543DB2D0A2BC4B8.key
cd $ORI_PWD > /dev/null
OPT=$(dnf_opt "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP" "vector")
dnf --assumeyes $OPT