-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2_sources.sh
52 lines (33 loc) · 1.17 KB
/
2_sources.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
echo ""
echo "*** Adding Sources"
echo ""
echo "* Adding dotdeb.list to sources.list.d"
cat <<EOF >> /etc/apt/sources.list.d/dotdeb.list
deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all
deb http://packages.dotdeb.org wheezy-php55 all
deb-src http://packages.dotdeb.org wheezy-php55 all
EOF
if grep -q "deb http://packages.dotdeb.org squeeze all" "/etc/apt/sources.list"; then
echo "* No need to append sources"
else
cat <<EOF >> /etc/apt/sources.list
deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all
deb http://packages.dotdeb.org wheezy-php55 all
deb-src http://packages.dotdeb.org wheezy-php55 all
EOF
echo "* Add Dotdeb key"
wget -q http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | apt-key add -
rm dotdeb.gpg
fi
echo "* Adding mariadb.list to sources.list.d"
apt-get install python-software-properties
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
cat <<EOF >> /etc/apt/sources.list.d/dotdeb.list
deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/debian wheezy main
deb-src http://ftp.osuosl.org/pub/mariadb/repo/5.5/debian wheezy main
EOF
echo ""