Changeset 5504


Ignore:
Timestamp:
Jul 13, 2017, 11:48:12 AM (17 months ago)
Author:
jrpelegrina
Message:

Fix package

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

Legend:

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

    r5493 r5504  
    99        ORIGINAL_FILE_BROWSED="/etc/cups/cups-browsed.conf"
    1010        NEW_DIVERTED_FILE_CUPS="/etc/cups/cupsd.conf.diverted"
    11         NEW_DIVERTED_FILE_BROWSED="/etc/cups/cups-browsed.diverted"
     11        NEW_DIVERTED_FILE_BROWSED="/etc/cups/cups-browsed.conf.diverted"
    1212        LLIUREX_FILE_CUPS="/etc/cups/cupsd.conf.lliurex"
    13         LLIUREX_FILE_BROWSED="/etc/cups/cups-browsed.conf.lliurex"
     13        LLIUREX_FILE_BROWSED="/usr/share/lliurex-cups-client/llx-data/cups-browsed.conf.lliurex"
    1414
    1515       
     
    2525
    2626                dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE_BROWSED" "$ORIGINAL_FILE_BROWSED"
    27                 ln -s "$LLIUREX_FILE_BROWSED" "$ORIGINAL_FILE_BROWSED"
     27                cp "$LLIUREX_FILE_BROWSED" "$ORIGINAL_FILE_BROWSED"
    2828
    2929        fi
    3030       
    31         systemctl restart cups-browsed || true
    3231        systemctl restart cups || true
     32        #systemctl restart cups-browsed || true
     33
    3334
    3435        ;;
  • lliurex-cups-client/trunk/fuentes/debian/lliurex-cups-client.prerm

    r5493 r5504  
    1010        ORIGINAL_FILE_BROWSED="/etc/cups/cups-browsed.conf"
    1111        NEW_DIVERTED_FILE_CUPS="/etc/cups/cupsd.conf.diverted"
    12         NEW_DIVERTED_FILE_BROWSED="/etc/cups/cups-browsed.diverted"
     12        NEW_DIVERTED_FILE_BROWSED="/etc/cups/cups-browsed.conf.diverted"
    1313        LLIUREX_FILE_CUPS="/etc/cups/cupsd.conf.lliurex"
    14         LLIUREX_FILE_BROWSED="/etc/cups/cups-browsed.conf.lliurex"
     14       
    1515
    1616
     
    2222       
    2323       
    24         if [ -L "$ORIGINAL_FILE_BROWSED" ]; then
     24        if [ -f "$NEW_DIVERTED_FILE_BROWSED" ]; then
    2525                rm -rf "$ORIGINAL_FILE_BROWSED" || true
    2626                dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE_BROWSED" "$ORIGINAL_FILE_BROWSED"
     
    2828        fi
    2929
    30         systemctl restart cups-browsed || true
     30        #systemctl restart cups-browsed || true
    3131        systemctl restart cups || true
    3232
Note: See TracChangeset for help on using the changeset viewer.