From 2a7b2e0a1cfbe09be91af61f2938199a4b6591e9 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Tue, 8 Dec 2015 14:32:29 +0100 Subject: [PATCH] Make sure sources.list has correct permissions. --- src/functions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 } -- 1.7.10.4