Izmjena inačice po novoj numeraciji, manja kozmetika
[apt-cn.git] / install-carnet-sources.list
1 #!/bin/sh
2
3 if ! cmp -s /usr/share/doc/apt-cn/sources.list /etc/apt/sources.list; then
4   . /usr/share/carnet-tools/functions.sh
5   echo "CN: Backing up old /etc/apt/sources.list to /var/backups/."
6   echo "CN: Installing new /etc/apt/sources.list."
7   echo ""
8   cp_backup_conffile /etc/apt/sources.list
9   cp /usr/share/doc/apt-cn/sources.list /etc/apt/sources.list
10   apt-get update
11 else
12   echo "CN: Valid CARNet's /etc/apt/sources.list already exists."
13   echo "CN: Nothing to do."
14   echo ""
15 fi
16