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

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <daniel@techandme.se>2017-11-19 14:25:57 +0300
committerGitHub <noreply@github.com>2017-11-19 14:25:57 +0300
commit1d75d98ee2ff37d1b756e3c38e5813d091c986a5 (patch)
treea615c8988be55b9066cc65ea95932d09ac2e4653 /nextcloud_install_production.sh
parent629cb33450bebcd9a791c2dd70432a0851483174 (diff)
change to existing function instead
Diffstat (limited to 'nextcloud_install_production.sh')
-rw-r--r--nextcloud_install_production.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh
index 9116da5b..384207e1 100644
--- a/nextcloud_install_production.sh
+++ b/nextcloud_install_production.sh
@@ -6,12 +6,7 @@
sed -i "s|#precedence ::ffff:0:0/96 100|precedence ::ffff:0:0/96 100|g" /etc/gai.conf
# Install curl if not existing
-if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" == "1" ]
-then
- echo "curl OK"
-else
- apt update && apt install curl -y
-fi
+install_if_not curl
# shellcheck disable=2034,2059
true