Ignore:
Timestamp:
Jan 29, 2018, 12:23:54 PM (20 months ago)
Author:
kbut
Message:

check mirror inside enabled error scope

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lmd/trunk/fuentes/lmd-lliurex-data.install/usr/share/ltsp/plugins/ltsp-build-client/ISO/000-unsquash-iso

    r6692 r6713  
    2525                        umount $ISOTEMPPATH
    2626                        set -e
    27                         chroot $ROOT apt-get $APT_GET_OPTS update && echo si || { mv $ROOT/etc/apt/sources.list $ROOT/etc/apt/sources.list.old;}
    2827                        mv $ROOT/etc/apt/sources.list $ROOT/etc/apt/sources.list.old
     28                        n4d-client -m is_mirror_available -c MirrorManager | grep 'True' && rc=0 || rc=1
    2929                        set +e
    30                         n4d-client -m is_mirror_available -c MirrorManager | grep 'True'
    31                         rc=$?
    3230                        if [ '$rc' = '0' ]; then
    3331                                echo "deb http://mirror/llx16 xenial main restricted universe multiverse" >> $ROOT/etc/apt/sources.list
Note: See TracChangeset for help on using the changeset viewer.