truncate vscode file instead of removing to repvent coming back
This commit is contained in:
parent
965b7d196e
commit
33403ec8a0
10
install
10
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.13
|
||||
# version: 1.2.14
|
||||
#
|
||||
|
||||
if [[ $(id -u) -ne 0 ]]; then
|
||||
@ -106,10 +106,6 @@ 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
|
||||
@ -168,6 +164,10 @@ if grep -q raspberrypi.org /etc/apt/sources.list.d/*; then
|
||||
done
|
||||
echo "Installing monit from raspberrypi repo..."
|
||||
apt-get --yes --no-install-recommends install -t ${codename} monit
|
||||
|
||||
# remove vscode repo if found since there is no desktop environment
|
||||
# empty file will exist to keep raspberrypi-sys-mods package from adding it back
|
||||
truncate -s 0 "${vsCodeList}"
|
||||
fi
|
||||
|
||||
echo "Install prerequisites..."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user