diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-05-25 15:28:32 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-05-25 15:28:32 +0200 |
commit | e00f924a6990c3766ec7c6fc06985516a7a54de5 (patch) | |
tree | 4c0575473cb771eb0c3f37148ed0d579fca67a55 /root | |
parent | posodobi.sh upgrade (diff) | |
download | n-e00f924a6990c3766ec7c6fc06985516a7a54de5.tar n-e00f924a6990c3766ec7c6fc06985516a7a54de5.tar.gz n-e00f924a6990c3766ec7c6fc06985516a7a54de5.tar.bz2 n-e00f924a6990c3766ec7c6fc06985516a7a54de5.tar.lz n-e00f924a6990c3766ec7c6fc06985516a7a54de5.tar.xz n-e00f924a6990c3766ec7c6fc06985516a7a54de5.tar.zst n-e00f924a6990c3766ec7c6fc06985516a7a54de5.zip |
Diffstat (limited to 'root')
-rwxr-xr-x | root/posodobi.sh | 10 |
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 |