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
path: root/bin
diff options
context:
space:
mode:
authorthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-07-29 01:50:42 +0300
committerTobias K <6317548+theCalcaholic@users.noreply.github.com>2022-08-12 15:26:32 +0300
commit5bf6505ac5afc0ddedda18c378f7133144a5a271 (patch)
treea63bf8fee4c97e7be7ec311febb289b6b759e5e8 /bin
parent611fd7a357629f7902f76a43cba29fbb6b229477 (diff)
library.sh: Don't use {release}-security package source if not available in sources.list
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ncp-dist-upgrade2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ncp-dist-upgrade b/bin/ncp-dist-upgrade
index d8b30858..a9e37d5e 100755
--- a/bin/ncp-dist-upgrade
+++ b/bin/ncp-dist-upgrade
@@ -70,7 +70,7 @@ apt-get dist-upgrade -y
# install latest PHP version
release_new=$(jq -r '.release' < "${new_cfg}")
# the default repo in bullseye is bullseye-security - use bullseye if it is not available
-grep -v '#' /etc/apt/sources.list | grep 'bullseye-security' > /dev/null && release_new="${release_new}-security"
+grep -Eh '^deb ' /etc/apt/sources.list | grep 'bullseye-security' > /dev/null && release_new="${release_new}-security"
php_ver_new=$(jq -r '.php_version' < "${new_cfg}")
$APTINSTALL -t ${release_new} php${php_ver_new} php${php_ver_new}-curl php${php_ver_new}-gd php${php_ver_new}-fpm php${php_ver_new}-cli php${php_ver_new}-opcache \