From 965b7d196ee231dd09b107c917c0480cfc021a48 Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Thu, 4 Feb 2021 06:29:06 -0600 Subject: [PATCH] remove vscode repo if found because omv installs should not be running a desktop environment --- install | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install b/install index 84d2534..d937b9d 100755 --- a/install +++ b/install @@ -13,7 +13,7 @@ # https://github.com/armbian/config/blob/master/debian-software # https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/ # -# version: 1.2.12 +# version: 1.2.13 # if [[ $(id -u) -ne 0 ]]; then @@ -51,6 +51,7 @@ omvSources="/etc/apt/sources.list.d/openmediavault.list" rfkill="/usr/sbin/rfkill" smbOptions="min receivefile size = 16384\nwrite cache size = 524288\ngetwd cache = yes\nsocket options = TCP_NODELAY IPTOS_LOWDELAY" url="https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/" +vsCodeList="/etc/apt/sources.list.d/vscode.list" wpaConf="/etc/wpa_supplicant/wpa_supplicant.conf" export DEBIAN_FRONTEND=noninteractive @@ -105,6 +106,11 @@ if [ ${ipv6} -ne 1 ]; then echo 'Acquire::ForceIPv4 "true";' > ${forceIpv4} fi +# remove vscode repo if found since there is no desktop environment +if [ -f "${vsCodeList}" ]; then + rm "${vsCodeList}" +fi + echo "Updating repos before installing..." apt-get update