Skip to content

Commit

Permalink
add opt-out for unattended upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
3alpha committed Jul 24, 2023
1 parent 55a9ba9 commit 7fe4abd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/dappnode_install_pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,13 @@ else
install_lsof 2>&1 | tee -a $LOG_FILE
fi

# Only install unatended upgrades if needed
if unattended-upgrades -h >/dev/null 2>&1; then
echo -e "\e[32m \n\n unattended-upgrades is already installed \n\n \e[0m" 2>&1 | tee -a $LOG_FILE
else
install_unattendedupgrades 2>&1 | tee -a $LOG_FILE
if [[ $SKIP_UNNATENDED_UPGRADES != "true" ]]; then
# Only install unatended upgrades if needed
if unattended-upgrades -h >/dev/null 2>&1; then
echo -e "\e[32m \n\n unattended-upgrades is already installed \n\n \e[0m" 2>&1 | tee -a $LOG_FILE
else
install_unattendedupgrades 2>&1 | tee -a $LOG_FILE
fi
fi

#Check connectivity
Expand Down

0 comments on commit 7fe4abd

Please sign in to comment.