Ignore:
Timestamp:
08/03/18 13:17:46 (7 years ago)
Author:
Edwin Eefting <edwin@datux.nl>
Branches:
master, perl-5.22
Children:
a384a97
Parents:
981dbbc (diff), 1163be4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'gcc484'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • npl/fileserver/samba_conf/root/etc/postinst.d/post.samba

    r981dbbc rce9f9b3  
    4747
    4848#add new setting (v3.5)
    49 if ! grep "max protocol" /home/system/samba/smb.conf; then
    50         sed -i /home/system/samba/smb.conf -e 's/^.global./[global]\nmax protocol = SMB2/'
    51 fi
     49#if ! grep "max protocol" /home/system/samba/smb.conf; then
     50#       sed -i /home/system/samba/smb.conf -e 's/^.global./[global]\nmax protocol = SMB2/'
     51#fi
    5252
    5353#change setting settings (v4.4.4)
    5454# https://wiki.samba.org/index.php/Required_settings_for_NT4-style_domains
    55 sed -i /home/system/samba/smb.conf -e 's/max protocol = SMB2/max protocol = NT1/'
     55#sed -i /home/system/samba/smb.conf -e 's/max protocol = SMB2/max protocol = NT1/'
    5656
    5757
     
    5959sed -i /home/system/samba/smb.conf -e 's/.*socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192.*//'
    6060
     61#samba 4.7+ chooses good defaults
     62sed -i  /home/system/samba/smb.conf -e 's/.*max protocol.*//g'
     63 
    6164chmod 1777 /home/shares/profiles
    6265chmod 1777 /home/shares/spool
Note: See TracChangeset for help on using the changeset viewer.