[microdecision] Show apt and rpi-update logs in stdin

This commit is contained in:
Alexandre Aubin 2018-03-28 18:01:55 +02:00 committed by GitHub
parent 8250bba120
commit 4c924e83b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,7 +179,7 @@ function apt_get_wrapper() {
-- \
apt-get $*
else
apt-get $* >> $YUNOHOST_LOG 2>&1
apt-get $* 2>&1 | tee -a $YUNOHOST_LOG
fi
}
@ -239,7 +239,7 @@ function upgrade_system() {
|| return 3
if [[ "$BUILD_IMAGE" != "1" ]] ; then
rpi-update >> $YUNOHOST_LOG 2>&1 \
(rpi-update 2>&1 | tee -a $YUNOHOST_LOG) \
|| return 4
fi
fi