Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-09-10 19:27:35 +0300
committernachoparker <nacho@ownyourbits.com>2019-09-10 19:31:41 +0300
commit9c8b990a4c06ec6f0f9694fa2b040755430fda7b (patch)
tree21deb83fd9a15999d1ab015d774ef5fb9f048b34
parentc1e1b65616389fdb72e1a4e8dadccaad630866ff (diff)
update: fix distro check detection
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r--updates/1.16.0.sh2
-rw-r--r--updates/1.17.0.sh3
2 files changed, 4 insertions, 1 deletions
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