Do not run the rpi-update step if we're building images

This commit is contained in:
Alexandre Aubin 2018-03-08 18:49:10 +01:00 committed by GitHub
parent 882ee11397
commit 1f797fefe3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,9 +238,10 @@ function upgrade_system() {
-y --force-yes install rpi-update \
|| return 3
rpi-update >> $YUNOHOST_LOG 2>&1 \
|| return 4
if [[ "$BUILD_IMAGE" != "1" ]] ; then
rpi-update >> $YUNOHOST_LOG 2>&1 \
|| return 4
fi
fi
}