From 14ec39c214fdc2084e12b0490ef6ea1038856f50 Mon Sep 17 00:00:00 2001 From: Conan_Doyl Date: Mon, 6 Jul 2020 20:47:59 +0200 Subject: [PATCH] Added a Fix for sudo --- nextcloud_head.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nextcloud_head.sh b/nextcloud_head.sh index 0f96f9c..bef2ba0 100644 --- a/nextcloud_head.sh +++ b/nextcloud_head.sh @@ -5,7 +5,7 @@ # File Created: Monday, 6th July 2020 11:05:48 am # Author: Thomas Brinkmann (doyl@dsh.icu) # ----- -# Last Modified: Monday, 6th July 2020 8:19:25 pm +# Last Modified: Monday, 6th July 2020 8:34:54 pm # Modified By: Thomas Brinkmann (doyl@dsh.icu>) # ----- # Copyright 2020 - Thomas Brinkmann. All Rights Reserved. @@ -40,7 +40,6 @@ show_spinner() done } -randpw(){ < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-16};echo;} #https://download.nextcloud.com/server/releases/nextcloud- @@ -54,7 +53,8 @@ download_latestnextcloud(){ install_Debian9(){ echo -e "\n\e[92mInstalling requirements...\e[39m" - apt-get install -y sudo zip unzip curl wget gnupg2 ca-certificates lsb-release apt-transport-https >/dev/null & + apt-get install --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" sudo + apt-get install -y zip unzip curl wget gnupg2 ca-certificates lsb-release apt-transport-https >/dev/null & show_spinner $! echo -e "\n\e[92mInstalling public key & source list...\e[39m"