mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-11 16:09:16 +00:00
Attempt apt-get update twice
This commit is contained in:
parent
b31a6416d8
commit
63fee5be5e
|
@ -104,17 +104,10 @@ if ! skip_base_upgrades ; then
|
|||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 66F6C87B98EBCFE2 # I2P (R4SAS)
|
||||
set -e
|
||||
|
||||
# Remove old node repo to prevent issues during apt-update
|
||||
if [ -f /etc/apt/sources.list.d/nodesource.list ]; then
|
||||
CURRENT_NODE_VERSION=$(cat /etc/apt/sources.list.d/nodesource.list)
|
||||
if [[ "$CURRENT_NODE_VERSION" != *"node_${NODE_JS_VERSION}"* ]]; then
|
||||
echo "" > /etc/apt/sources.list.d/nodesource.list
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check for updates (might auto-install all updates later)
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
$TORIFY apt-get update --allow-releaseinfo-change
|
||||
$TORIFY apt-get update --allow-releaseinfo-change || \
|
||||
apt-get update --allow-releaseinfo-change
|
||||
|
||||
# Freeze any packages we don't want to update
|
||||
if [ $IS_X86 = 1 ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user