allow setting release to sid using DEBIAN_RELEASE env var

This commit is contained in:
Hans-Christoph Steiner 2018-05-24 21:48:02 +02:00
parent 03c69d512c
commit e2c8c58363
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ if [[ ! -f $lockfile ]] ; then
set -e
set -x
if [ ! -z "$DEBIAN_RELEASE" ]; then
sed -i "s, testing , $DEBIAN_RELEASE ," /etc/apt/sources.list
fi
apt-get -qy update
apt-get -qy dist-upgrade