source: npl/fileserver/advanced_netlogon/post.advanced_netlogon @ 0105685

gcc484ntopperl-5.22
Last change on this file since 0105685 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 376 bytes
Line 
1#!/bin/bash
2#(c) DatuX 2008
3#we need to add an pre execute line, this was not in the original configurationfile
4if [ ! `grep -F '-e logon script = %U' /home/system/samba/smb.conf` ]; then
5 sed 's/.*logon.bat/\troot preexec = \"\/usr\/sbin\/netlogon_script_creator %U\"\n\tlogon script = %U/' -i /home/system/samba/smb.conf || exit 1
6fi
7svcreset /service/smbd || exit 1
8exit 0
Note: See TracBrowser for help on using the repository browser.