Getting tox key

This commit is contained in:
Bob Mottram 2016-11-03 15:32:48 +00:00
parent eb7b01f450
commit 5b839528c2
1 changed files with 8 additions and 3 deletions

View File

@ -688,9 +688,14 @@ function enable_tox_repo {
echo 'deb http://download.opensuse.org/repositories/home:/antonbatenev:/tox/Debian_8.0/ /' > $rootdir/etc/apt/sources.list.d/tox.list
chroot "$rootdir" /usr/bin/wget -q http://download.opensuse.org/repositories/home:antonbatenev:tox/Debian_8.0/Release.key -O- > /root/tox.key
chroot "$rootdir" apt-key add /root/tox.key
chroot "$rootdir" rm /root/tox.key
cat >> $rootdir/root/gettoxkey.sh <<EOF
#!/bin/bash
wget -q http://download.opensuse.org/repositories/home:antonbatenev:tox/Debian_8.0/Release.key -O- > /root/tox.key
apt-key add /root/tox.key
rm /root/tox.key
EOF
chroot "$rootdir" chmod +x /root/gettoxkey.sh
chroot "$rootdir" /root/gettoxkey.sh
chroot "$rootdir" apt-get update
echo "Tox Repository Installed."
}