summaryrefslogtreecommitdiff
path: root/patchroot.sh
blob: 2345f777fe7e81cd8605131d513cb33f141f0f54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
hostname=adam
echo $hostname > /etc/hostname
sed -i -e 's/\blocalhost\b/& '"$hostname"'/' /etc/hosts

. /etc/os-release

cat <<END > /etc/apt/sources.list
deb  http://httpredir.debian.org/debian  ${VERSION_CODENAME}            main  #contrib  non-free
deb  http://security.debian.org          ${VERSION_CODENAME}/updates    main  #contrib  non-free
#deb http://httpredir.debian.org/debian  ${VERSION_CODENAME}-backports  main  #contrib  non-free
END

#apt-get update
cat /var/lib/apt/lists/*_Packages | dpkg --update-avail -

#apt-get -yd install baresip
apt-mark install baresip