make wget present and use tee to show progress

This commit is contained in:
Leif Johansson 2014-03-04 18:56:08 +01:00
parent 2369e391d7
commit e5dcb167d5

View file

@ -22,7 +22,7 @@ fi
set -x set -x
apt-get -y install rsync git-core apt-get -y install rsync git-core wget
dpkg -i cosmos_1.2-2_all.deb dpkg -i cosmos_1.2-2_all.deb
if ! test -d /var/cache/cosmos/repo; then if ! test -d /var/cache/cosmos/repo; then
@ -36,6 +36,7 @@ perl -pi -e "s,#COSMOS_UPDATE_VERIFY_GIT_TAG_PATTERN=.*,COSMOS_UPDATE_VERIFY_GIT
env COSMOS_BASE=/var/cache/cosmos COSMOS_KEYS=/var/cache/cosmos/repo/global/overlay/etc/cosmos/keys /var/cache/cosmos/repo/global/post-tasks.d/015cosmos-trust env COSMOS_BASE=/var/cache/cosmos COSMOS_KEYS=/var/cache/cosmos/repo/global/overlay/etc/cosmos/keys /var/cache/cosmos/repo/global/post-tasks.d/015cosmos-trust
(date; nohup cosmos -v update && nohup cosmos -v apply; date) > /var/log/cosmos.log 2>&1 (date; nohup cosmos -v update && nohup cosmos -v apply; date) 2>&1 | tee /var/log/cosmos.log
exit 0 exit 0