Ignore:
Timestamp:
Mar 12, 2018, 1:26:53 PM (3 years ago)
Author:
hectorgh
Message:

adding canonical sources.list if it doens't exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-flash-transitional/trunk/fuentes/debian/postinst

    r6995 r6999  
    2222    configure)
    2323
     24        CANONICAL_FILE="/etc/apt/sources.list.d/canonical.list"
    2425        RC=0
    25         dpkg -l adobe-flashplugin 2>/dev/null || RC=1
     26
     27        dpkg -l adobe-flashplugin 1>/dev/null 2>/dev/null || RC=1
    2628
    2729        if [ "$RC" = "0" ]; then
    2830                apt-mark manual adobe-flashplugin || true
     31               
     32                RC_SL=0
     33                rgrep "archive.canonical.com" /etc/apt/sources.list* | grep -e .list: || RC_SL=1
     34
     35                if [ "$RC_SL" = "0" ]; then
     36                        echo "# AUTOMATICALLY ADDED BY LLIUREX-FLASH-TRANSITIONAL" > $CANONICAL_FILE
     37                        echo "deb http://archive.canonical.com/ubuntu xenial partner" >> $CANONICAL_FILE
     38                fi
    2939        fi
    3040
Note: See TracChangeset for help on using the changeset viewer.