Changeset 7260


Ignore:
Timestamp:
May 7, 2018, 5:11:34 PM (17 months ago)
Author:
hectorgh
Message:

adding postinst step to replace sync with async

Location:
n4d-nfs/trunk/fuentes/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • n4d-nfs/trunk/fuentes/debian/changelog

    r7257 r7260  
     1n4d-nfs (0.6.4) xenial; urgency=high
     2
     3  * Added postinst process to replace sync with async
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Mon, 07 May 2018 17:10:22 +0200
     6
    17n4d-nfs (0.6.3) xenial; urgency=high
    28
  • n4d-nfs/trunk/fuentes/debian/postinst

    r5250 r7260  
    2424
    2525        n4d-modules enable-plugin /etc/n4d/conf.d/NfsManager || true
     26
     27        if dpkg --compare-versions "$2" lt 0.6.4; then
     28                EXPORTS_FILE="/etc/exports.d/net.exports"
     29                if [ -e "$EXPORTS_FILE" ]; then
     30                        rc=0
     31                        grep "async" "$EXPORTS_FILE" 1> /dev/null || rc=1
     32                        if [ $rc -eq 1  ]; then
     33                                python -c "import imp;imp.load_source('NfsManager','/usr/share/n4d/python-plugins/NfsManager.py').NfsManager().fix_async()"
     34                                # let's not restart nfs server for now
     35                        fi
     36                fi
     37
     38        fi
     39
    2640
    2741        if dpkg --compare-versions "$2" lt 0.4; then
Note: See TracChangeset for help on using the changeset viewer.