You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
787 B

  1. #!/bin/bash
  2. set -eux
  3. ##
  4. ## kal-scripts
  5. ##
  6. if ! [ -e /etc/apt/sources.list.d/kalysto.org.list ]; then
  7. ## Required to fetch our repository in https
  8. apt-get install -y --force-yes apt-transport-https
  9. cat <<EOF > /etc/apt/sources.list.d/kalysto.org.list
  10. ## vlab's shell libraries
  11. deb https://deb.kalysto.org no-dist kal-alpha kal-beta kal-main
  12. EOF
  13. if ! type gpg >/dev/null; then
  14. apt-get install -y --force-yes gnupg2 </dev/null
  15. fi
  16. ## Include the GPG key
  17. wget -O - https://deb.kalysto.org/conf/public-key.gpg | apt-key add -
  18. ## Update only this repo:
  19. apt-get update -o Dir::Etc::sourcelist="sources.list.d/kalysto.org.list" \
  20. -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
  21. fi
  22. apt-get install -y --force-yes kal-scripts