From: Valentin Vidic Date: Tue, 8 Dec 2015 13:32:29 +0000 (+0100) Subject: Make sure sources.list has correct permissions. X-Git-Tag: debian/8.0.1~1 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=2a7b2e0a1cfbe09be91af61f2938199a4b6591e9;p=carnet-upgrade.git Make sure sources.list has correct permissions. --- diff --git a/src/functions.sh b/src/functions.sh index 34b9022..4c98608 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -530,16 +530,18 @@ create_sources_list () { # backup old version if [ -f $sl -a ! -f $sl.$backup_ext ]; then - cp -av $sl $sl.$backup_ext + cp -v $sl $sl.$backup_ext fi # install new version - cp -av $sl_new $sl + cp -v $sl_new $sl notice "Novi sadrzaj datoteke /etc/apt/sources.list: `cat /etc/apt/sources.list`" fi + # make sure permissions are correct + chmod 0644 $sl rm $sl_new }