Changeset 5249


Ignore:
Timestamp:
Jun 21, 2017, 2:39:08 PM (19 months ago)
Author:
hectorgh
Message:

adding nfsvers=3 to mount options

Location:
n4d-nfs/trunk/fuentes
Files:
4 edited

Legend:

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

    r5219 r5249  
     1n4d-nfs (0.6) xenial; urgency=high
     2
     3  * Adding nfsvers=3 to mount options.
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Wed, 21 Jun 2017 14:37:57 +0200
     6
    17n4d-nfs (0.4) xenial; urgency=high
    28
  • n4d-nfs/trunk/fuentes/debian/postinst

    r5219 r5249  
    3838        fi
    3939
     40        if dpkg --compare-versions "$2" lt 0.4; then
     41                SYSTEMD_FILE="/lib/systemd/system/net-server\x2dsync.mount"
     42                NEW_OPTIONS="Options = rw,hard,intr,nosuid,nfsvers=3"
     43                if [ -e "$SYSTEMD_FILE" ]; then
     44                        rc=0
     45                        grep "nfsvers" "$SYSTEMD_FILE" 1> /dev/null || rc=1
     46                        if [ $rc -eq 1 ]; then
     47                                sed -i "s/^Options.*/$NEW_OPTIONS/g" $SYSTEMD_FILE
     48                                systemctl daemon-reload || true
     49                                systemctl restart net-server\\x2dsync.mount || true
     50                        fi
     51
     52                fi
     53
     54        fi
     55
    4056
    4157        ;;
  • n4d-nfs/trunk/fuentes/install/usr/share/n4d/python-plugins/NfsManager.py

    r5219 r5249  
    1818                self.file_header="#\n# File generated by NfsManager plugin. Do not edit\n#\n\n"
    1919               
    20                 self.default_mount_options="rw,hard,intr,nosuid"
     20                self.default_mount_options="rw,hard,intr,nosuid,nfsvers=3"
    2121                self.tpl_env = Environment(loader=FileSystemLoader('/usr/share/n4d/templates/nfs'))
    2222               
  • n4d-nfs/trunk/fuentes/install/usr/share/n4d/templates/nfs/mount.skel

    r5072 r5249  
    88Where = {{ DEST }}
    99Type = nfs
    10 Options= {{ OPTIONS }}
     10Options = {{ OPTIONS }}
    1111TimeoutSec = 30
    1212
Note: See TracChangeset for help on using the changeset viewer.