Advertisement
v1ral_ITS

easy multisystem PPA add sources list and apt-key

Jul 10th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #!/bin/bash
  2. if [ ! "$(grep '^deb http://liveusb.info/multisystem' /etc/apt/sources.list 2>/dev/null)" ]; then
  3. vardeb="## Depôt MultiSystem\ndeb http://liveusb.info/multisystem/depot all main"
  4. echo -e "$vardeb" | tee -a "/etc/apt/sources.list"
  5. fi
  6. #Ajouter clé publique pour apt
  7. sudo -u "$SUDO_USER" wget -q http://liveusb.info/multisystem/depot/multisystem.asc -O- | apt-key add -
  8. #Recharger les sources
  9. apt-get update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement