From 9c8b990a4c06ec6f0f9694fa2b040755430fda7b Mon Sep 17 00:00:00 2001 From: nachoparker Date: Tue, 10 Sep 2019 10:27:35 -0600 Subject: update: fix distro check detection Signed-off-by: nachoparker --- updates/1.16.0.sh | 2 +- updates/1.17.0.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/updates/1.16.0.sh b/updates/1.16.0.sh index f6c17740..79893bbd 100644 --- a/updates/1.16.0.sh +++ b/updates/1.16.0.sh @@ -19,7 +19,7 @@ apt-get install -y --no-install-recommends lsb-release ncc config:app:set preview jpeg_quality --value="60" # missed some sources -sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/* &>/dev/null || true +sed -i "s/stretch/$RELEASE/g" /etc/apt/sources.list.d/* &>/dev/null || true # docker images only [[ -f /.docker-image ]] && { diff --git a/updates/1.17.0.sh b/updates/1.17.0.sh index 0aa97cb6..1e720a9e 100644 --- a/updates/1.17.0.sh +++ b/updates/1.17.0.sh @@ -8,6 +8,9 @@ source /usr/local/etc/library.sh # sets NCVER PHPVER RELEASE # all images +# restore sources in stretch +sed -i "s/buster/$RELEASE/g" /etc/apt/sources.list.d/* &>/dev/null || true + # restore smbclient after dist upgrade apt-get update apt-get install -y --no-install-recommends php${PHPVER}-gmp -- cgit v1.2.3