Changeset 5535


Ignore:
Timestamp:
Jul 17, 2017, 12:32:58 PM (23 months ago)
Author:
jrpelegrina
Message:

Fix files for only config cups-browsed

Location:
lliurex-cups-client/trunk/fuentes
Files:
1 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-cups-client/trunk/fuentes/debian/lliurex-cups-client.postinst

    r5504 r5535  
    66   configure)
    77        PKG="lliurex-cups-client"
    8         ORIGINAL_FILE_CUPS="/etc/cups/cupsd.conf"
     8        #ORIGINAL_FILE_CUPS="/etc/cups/cupsd.conf"
    99        ORIGINAL_FILE_BROWSED="/etc/cups/cups-browsed.conf"
    10         NEW_DIVERTED_FILE_CUPS="/etc/cups/cupsd.conf.diverted"
     10        #NEW_DIVERTED_FILE_CUPS="/etc/cups/cupsd.conf.diverted"
    1111        NEW_DIVERTED_FILE_BROWSED="/etc/cups/cups-browsed.conf.diverted"
    12         LLIUREX_FILE_CUPS="/etc/cups/cupsd.conf.lliurex"
    13         LLIUREX_FILE_BROWSED="/usr/share/lliurex-cups-client/llx-data/cups-browsed.conf.lliurex"
     12        #LLIUREX_FILE_CUPS="/etc/cups/cupsd.conf.lliurex"
     13        LLIUREX_FILE_BROWSED="/usr/share/lliurex-cups-client/cups-browsed.conf.lliurex"
    1414
    1515       
    16         if [ ! -L "$ORIGINAL_FILE_CUPS" ]; then
     16        #if [ ! -L "$ORIGINAL_FILE_CUPS" ]; then
    1717
    18                 dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE_CUPS" "$ORIGINAL_FILE_CUPS"
    19                 ln -s "$LLIUREX_FILE_CUPS" "$ORIGINAL_FILE_CUPS"
     18        #       dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE_CUPS" "$ORIGINAL_FILE_CUPS"
     19        #       ln -s "$LLIUREX_FILE_CUPS" "$ORIGINAL_FILE_CUPS"
    2020
    21         fi
     21        #fi
    2222       
    2323               
     
    3434
    3535        ;;
     36   abort-upgrade|abort-remove|abort-deconfigure)
     37        ;;
     38
    3639
    3740  *)
  • lliurex-cups-client/trunk/fuentes/debian/lliurex-cups-client.prerm

    r5504 r5535  
    77       
    88        PKG="lliurex-cups-client"
    9         ORIGINAL_FILE_CUPS="/etc/cups/cupsd.conf"
     9        #ORIGINAL_FILE_CUPS="/etc/cups/cupsd.conf"
    1010        ORIGINAL_FILE_BROWSED="/etc/cups/cups-browsed.conf"
    11         NEW_DIVERTED_FILE_CUPS="/etc/cups/cupsd.conf.diverted"
     11        #NEW_DIVERTED_FILE_CUPS="/etc/cups/cupsd.conf.diverted"
    1212        NEW_DIVERTED_FILE_BROWSED="/etc/cups/cups-browsed.conf.diverted"
    13         LLIUREX_FILE_CUPS="/etc/cups/cupsd.conf.lliurex"
     13        #LLIUREX_FILE_CUPS="/etc/cups/cupsd.conf.lliurex"
    1414       
    1515
    1616
    17         if [ -L "$ORIGINAL_FILE_CUPS" ]; then
    18                 rm -rf "$ORIGINAL_FILE_CUPS" || true
    19                 dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE_CUPS" "$ORIGINAL_FILE_CUPS"
     17        #if [ -L "$ORIGINAL_FILE_CUPS" ]; then
     18        #       rm -rf "$ORIGINAL_FILE_CUPS" || true
     19        #       dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE_CUPS" "$ORIGINAL_FILE_CUPS"
    2020
    21         fi
     21        #fi
    2222       
    2323       
Note: See TracChangeset for help on using the changeset viewer.