summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xroot/posodobi.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/root/posodobi.sh b/root/posodobi.sh
index c8d45f0..4bb7dfc 100755
--- a/root/posodobi.sh
+++ b/root/posodobi.sh
@@ -15,14 +15,16 @@ then
then
echo posodobitev ni uspela. $0 je končal s $status. izhod je dostopen na http://`hostname`.sijanec.eu/$t
fi
+ chmod go+r $t
exit $status
fi
set -xe
f=
+a=
grep "no-sync" <<<"$@" || /usr/sbin/emaint sync --auto
-grep "no-ask" <<<"$@" || f=--ask
+grep "no-ask" <<<"$@" || a=--ask
grep "colo" <<<"$@" || f="$f --color y"
[ `hostname` = varovalka ] && f="$f --exclude=media-libs/mesa"
-emerge --tree --verbose --update $f --newuse --changed-use --backtrack 30 --deep --with-bdeps=y --rebuilt-binaries --autounmask --autounmask-write @world
-emerge @preserved-rebuild --autounmask-write
-emerge --depclean
+emerge --tree --verbose --update $f $a --newuse --changed-use --backtrack 30 --deep --with-bdeps=y --rebuilt-binaries --autounmask --autounmask-write @world
+emerge --verbose $f --autounmask-write --autounmask @preserved-rebuild
+emerge --depclean $f