diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index 411d00c4..784204ae 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -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 < /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." }