forked from AtkinsChang/docker-plsm-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·26 lines (24 loc) · 1.46 KB
/
install.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
#!/bin/bash
set -e
source /tmp/build/buildconfig
set -x
#sed -i 's/^\(deb.*\)http:\/\/archive\.ubuntu\.com\(.*\)$/\1http:\/\/ubuntu.stu.edu.tw\2/g' /etc/apt/sources.list
echo "deb http://tw.archive.ubuntu.com/ubuntu/ wily main restricted universe multiverse" > /etc/apt/sources.list
echo "deb-src http://tw.archive.ubuntu.com/ubuntu/ wily main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://tw.archive.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src http://tw.archive.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://tw.archive.ubuntu.com/ubuntu/ wily-security main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src http://tw.archive.ubuntu.com/ubuntu/ wily-security main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://tw.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src http://tw.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse" >> /etc/apt/sources.list
echo 'Acquire::http::Proxy "http://apt.plsm.cs.nccu.edu.tw:3142";' > /etc/apt/apt.conf.d/01aptproxy
apt-get update
apt-get dist-upgrade -y
echo "Asia/Taipei" > /etc/timezone
dpkg-reconfigure tzdata
apt-get autoremove -y
workaround-pam build
apt-get clean
rm -rf /tmp/* /var/tmp/*
rm -rf /var/lib/apt/lists/*
rm -f /etc/ssh/ssh_host_*