Changeset 740


Ignore:
Timestamp:
Mar 1, 2016, 8:49:44 AM (3 years ago)
Author:
hectorgh
Message:

working on xmlrpclib diversion

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

Legend:

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

    r138 r740  
    22
    33set -e
     4
     5
     6ORIGINAL_FILE="/usr/lib/python2.7/xmlrpclib.py"
     7DIVERT_FILE="$ORIGINAL_FILE.divert"
     8LLIUREX_FILE="/usr/share/n4d-lliurex-base/diversions/xmlrpclib.py"
     9
    410case "$1" in
    511   configure)
    612        invoke-rc.d n4d restart || true
     13
     14         if [ ! -r ${DIVERT_FILE} ] ; then
     15
     16                dpkg-divert --package ${PACKAGE_NAME} --rename --quiet --add --divert  ${DIVERT_FILE}  ${ORIGINAL_FILE}
     17                ln -fs ${LLIUREX_FILE}  ${ORIGINAL_FILE}
     18        fi
     19
     20
    721   ;;
    822
Note: See TracChangeset for help on using the changeset viewer.