Changeset 7265


Ignore:
Timestamp:
May 9, 2018, 12:42:47 PM (17 months ago)
Author:
hectorgh
Message:

disabling release-upgrade

Location:
lliurex-base-files/trunk/fuentes/debian
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-base-files/trunk/fuentes/debian/postinst

    r4406 r7265  
    1717
    1818case "$1" in
    19    configure)
     19        configure)
    2020       
    21     # system groups
    22     update-base-groups || true
     21        # system groups
     22        update-base-groups || true
    2323        grep -q "$DIVERSION_TEST_FILE"  /var/lib/dpkg/diversions && echo "[INFO] .. diversion found! ...remove it!" && dpkg-divert --remove "$DIVERSION_TEST_FILE" || true
    24     [ ! -e $DIVERSION_ORIG_FILE ] || mv "$DIVERSION_ORIG_FILE" "$DIVERSION_TEST_FILE"
     24        [ ! -e $DIVERSION_ORIG_FILE ] || mv "$DIVERSION_ORIG_FILE" "$DIVERSION_TEST_FILE"
    2525   
    26     #cp -f /usr/share/lliurex-base-files/etc/* /etc/ || true
     26        ORIGINAL_UPGRADE_FILE="/etc/update-manager/release-upgrades"
     27        NEW_DIVERTED_FILE="/usr/share/diverted-sessions/release-upgrades.diverted"
     28        PKG="lliurex-base-files"
     29
     30        if [ ! -L ${ORIGINAL_UPGRADE_FILE} ] ; then
     31   
     32                dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_UPGRADE_FILE"
     33                ln -s /etc/update-manager/release-upgrades.lliurex $ORIGINAL_UPGRADE_FILE
     34
     35        fi
    2736   
    2837   ;;
Note: See TracChangeset for help on using the changeset viewer.