summaryrefslogtreecommitdiff
path: root/virtual/miller-base/files/update-install2
blob: 7d5936ea91b661c886ac61af2753508b57008df3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

file="/var/www/files/localhost/`hostname`_updates.txt"
dpfile="/var/www/files/localhost/`hostname`_depclean.txt"
tty -s
TTYTEST=$?
( \
	( \
		( \
			emerge -uqDN -j2 @world @system --keep-going && \
			rm -f $file ) || \
		/etc/portage/postsync.d/50-write-new-updates ) && \
	emerge --depclean -q -j2 --keep-going 2>&1 | tee $dpfile && \
	emerge -q @preserved-rebuild \
)
revdep-rebuild -q -i
if [ $TTYTEST -eq 0 ]; then
	etc-update 
fi