Changeset 342 for freebsd-mgnt


Ignore:
Timestamp:
Aug 23, 2011, 10:06:14 AM (13 years ago)
Author:
Rick van der Zwet
Message:

Make sure we also allow updating, when port is known to be bad (usually fixed in a couple of days).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd-mgnt/system-update.sh

    r306 r342  
    1111FALSE=0
    1212TRUE=1
     13
     14UNSAFE=${UNSAFE:-0}
     15if [ "$UNSAFE" != "0" ]; then
     16  echo "# WARNING: Vunabilitiy check disabled!"
     17  sleep 1
     18fi
    1319
    1420ask_question() {
     
    181187case $USE_PORTMGNT in
    182188  portupgrade)
    183     portupgrade -r -mBATCH=yes -a $NEWPORTS
     189    case $UNSAFE in
     190    0) portupgrade -r -mBATCH=yes -a $NEWPORTS ;;
     191    1) portupgrade -r -mBATCH=yes -mDISABLE_VULNERABILITIES=yes -a $NEWPORTS ;;
     192    esac
    184193    ;;
    185194  portmaster)
Note: See TracChangeset for help on using the changeset viewer.