dotfiles/apt/add-apt-sources.sh

25 lines
772 B
Bash
Raw Normal View History

2016-02-07 16:19:03 +00:00
#!/usr/bin/env bash
2016-02-14 17:47:57 +00:00
HCLINE="deb http://downloads.hipchat.com/linux/apt stable main"
HCFILE=/etc/apt/sources.list.d/atlassian-hipchat.list
2016-02-14 17:47:57 +00:00
ILINE="deb http://apt.insynchq.com/ubuntu wily non-free contrib"
IFILE=/etc/apt/sources.list.d/atlassian-hipchat.list
2016-02-14 17:47:57 +00:00
VLINE="deb http://download.virtualbox.org/virtualbox/debian wily contrib"
VFILE=/etc/apt/sources.list.d/virtualbox.list
2016-02-14 17:47:57 +00:00
OCLINE="deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/xUbuntu_15.10/ /"
OCFILE=/etc/apt/sources.list.d/owncloud-client.list
2016-02-14 17:47:57 +00:00
echo ">> Removing old files..."
rm -rf $HCFILE $IFILE $VFILE $OCFILE
touch $HCFILE $IFILE $VFILE $OCFILE
2016-02-14 17:47:57 +00:00
echo "Adding new sources..."
echo "$HCLINE" >> "$HCFILE"
echo "$ILINE" >> "$IFILE"
echo "$VLINE" >> "$VFILE"
echo "$OCLINE" >> "$OCFILE"