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 <github@hanssonit.se>2020-10-03 17:04:34 +0300
committerGitHub <noreply@github.com>2020-10-03 17:04:34 +0300
commit7af2e355206c5c1d47bc1f4469d755d02357bc65 (patch)
tree8c945ec6c117e90a84584c5b47f78dd923895bff
parente925df9ffec05079d9c0ef5a8e127a740b323107 (diff)
change method for using ipv4 during install
-rw-r--r--nextcloud_install_production.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh
index f27a7dd9..0b73c850 100644
--- a/nextcloud_install_production.sh
+++ b/nextcloud_install_production.sh
@@ -2,8 +2,8 @@
# T&M Hansson IT AB © - 2020, https://www.hanssonit.se/
-# Prefer IPv4
-sed -i "s|#precedence ::ffff:0:0/96 100|precedence ::ffff:0:0/96 100|g" /etc/gai.conf
+# Prefer IPv4 for apt
+echo 'Acquire::ForceIPv4 "true";' >> /etc/apt/apt.conf.d/99force-ipv4
# Install curl if not existing
if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" == "1" ]