Ignore:
Timestamp:
Feb 19, 2010, 9:14:00 AM (15 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: SSCC 0.9.5, SMBUsers 0.9.6 several fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/guitools-1.0/shared/sambainit.vrs

    r333 r408  
    7171    end
    7272
    73     if samba.!smbd = "" then call _ErrorBinaryNotFound "Could not find smbd.exe!"
     73    if samba.!smbd = "" then call _ErrorBinaryNotFound 'Could not find smbd.exe!'
    7474
    7575    samba.!bin = VRParseFileName(samba.!smbd,'DP')
     
    8080    if \VRFileExists(samba.!smbcmd) then do
    8181        samba.!smbcmd = samba.!bin'\smb.cmd'
    82         if \VRFileExists(samba.!smbcmd) then call _ErrorBinaryNotFound "Could not find smb.cmd!"
     82        if \VRFileExists(samba.!smbcmd) then call _ErrorBinaryNotFound 'Could not find smb.cmd!'
    8383    end
    8484    IF options.!debug == 1 THEN say '  smb.cmd        = "'samba.!smbcmd'"'
     
    8686    /* smbpasswd.exe */
    8787    samba.!smbpasswdexe = samba.!bin'\smbpasswd.exe'
    88     if \VRFileExists(samba.!smbpasswdexe) then call _ErrorBinaryNotFound "Could not find smbpasswd.exe!"
     88    if \VRFileExists(samba.!smbpasswdexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!smbpasswdexe'"!'
    8989    IF options.!debug == 1 THEN say '  smbpasswd.exe  = "'samba.!smbpasswdexe'"'
    9090
    9191    /* pdbedit.exe */
    9292    samba.!pdbeditexe = samba.!bin'\pdbedit.exe'
    93     if \VRFileExists(samba.!pdbeditexe) then call _ErrorBinaryNotFound "Could not find pdbedit.exe!"
     93    if \VRFileExists(samba.!pdbeditexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!pdbeditexe'"!'
    9494    IF options.!debug == 1 THEN say '  pdbedit.exe    = "'samba.!pdbeditexe'"'
    9595
    9696    /* net.exe */
    9797    samba.!netexe = samba.!bin'\net.exe'
    98     if \VRFileExists(samba.!netexe) then call _ErrorBinaryNotFound "Could not find net.exe!"
     98    if \VRFileExists(samba.!netexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!netexe'"!'
    9999    IF options.!debug == 1 THEN say '  net.exe        = "'samba.!netexe'"'
    100100
    101101    /* testparm.exe */
    102102    samba.!testparmexe = samba.!bin'\testparm.exe'
    103     if \VRFileExists(samba.!testparmexe) then call _ErrorBinaryNotFound "Could not find testparm.exe!"
     103    if \VRFileExists(samba.!testparmexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!testparmexe'"!'
    104104    IF options.!debug == 1 THEN say '  testparm.exe   = "'samba.!testparmexe'"'
    105105
    106106    /* smbtree.exe */
    107107    samba.!smbtreeexe = samba.!bin'\smbtree.exe'
    108     if \VRFileExists(samba.!smbtreeexe) then call _ErrorBinaryNotFound "Could not find smbtree.exe!"
     108    if \VRFileExists(samba.!smbtreeexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!smbtreeexe'"!'
    109109    IF options.!debug == 1 THEN say '  smbtree.exe    = "'samba.!smbtreeexe'"'
    110110
    111111    /* smbstatus.exe */
    112112    samba.!smbstatusexe = samba.!bin'\smbstatus.exe'
    113     if \VRFileExists(samba.!smbstatusexe) then call _ErrorBinaryNotFound "Could not find smbstatus.exe!"
     113    if \VRFileExists(samba.!smbstatusexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!smbstatusexe'"!'
    114114    IF options.!debug == 1 THEN say '  smbstatus.exe  = "'samba.!smbstatusexe'"'
    115115
    116116    /* smbcontrol.exe */
    117117    samba.!smbcontrolexe = samba.!bin'\smbcontrol.exe'
    118     if \VRFileExists(samba.!smbcontrolexe) then call _ErrorBinaryNotFound "Could not find smbcontrol.exe!"
     118    if \VRFileExists(samba.!smbcontrolexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!smbcontrolexe'"!'
    119119    IF options.!debug == 1 THEN say '  smbcontrol.exe = "'samba.!smbcontrolexe'"'
    120120
    121121    /* smbclient.exe */
    122122    samba.!smbclientexe = samba.!bin'\smbclient.exe'
    123     if \VRFileExists(samba.!smbclientexe) then call _ErrorBinaryNotFound "Could not find smbclient.exe!"
     123    if \VRFileExists(samba.!smbclientexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!smbclientexe'"!'
    124124    IF options.!debug == 1 THEN say '  smbclient.exe  = "'samba.!smbclientexe'"'
    125125
    126126    /* nmblookup.exe */
    127127    samba.!nmblookupexe = samba.!bin'\nmblookup.exe'
    128     if \VRFileExists(samba.!nmblookupexe) then call _ErrorBinaryNotFound "Could not find nmblookup.exe!"
     128    if \VRFileExists(samba.!nmblookupexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!nmblookupexe'"!'
    129129    IF options.!debug == 1 THEN say '  nmblookup.exe  = "'samba.!nmblookupexe'"'
    130130
     
    151151    end
    152152
    153     if samba.!pwd_mkdb = "" then call _ErrorBinaryNotFound "Could not find pwd_mkdb.exe!"
     153    if samba.!pwd_mkdb = "" then call _ErrorBinaryNotFound 'Could not find "'samba.!pwd_mkdb'"!'
    154154    IF options.!debug == 1 THEN say '  pwd_mkdb.exe   = "'samba.!pwd_mkdb'"'
    155155
     
    168168    end
    169169
    170     if samba.!log = "" then call _ErrorDataFileNotFound "Could not find logfiles!"
     170    if samba.!log = "" then call _ErrorDataFileNotFound 'Could not find logfiles!'
    171171    IF options.!debug == 1 THEN say '  Samba logfiles = "'samba.!log'"'
    172172
     
    180180    /* the password files - we'll create them if they don't exist */
    181181    samba.!masterpasswd = unixetc'\master.passwd'
    182     if \VRFileExists(samba.!masterpasswd) then call _ErrorDataFileNotFound "Could not find master.passwd!"
     182    if \VRFileExists(samba.!masterpasswd) then call _ErrorDataFileNotFound 'Could not find "'samba.!masterpasswd'"!'
    183183    IF options.!debug == 1 THEN say '  master.passwd  = "'samba.!masterpasswd'"'
    184184
    185185    samba.!pwddb = unixetc'\pwd.db'
    186     if \VRFileExists(samba.!pwddb) then call _ErrorDataFileNotFound "Could not find pwd.db!"
     186    if \VRFileExists(samba.!pwddb) then call _ErrorDataFileNotFound 'Could not find "'samba.!pwddb'"!'
    187187    IF options.!debug == 1 THEN say '  pwd.db         = "'samba.!pwddb'"'
    188188
    189189    samba.!spwddb = unixetc'\spwd.db'
    190     if \VRFileExists(samba.!spwddb) then call _ErrorDataFileNotFound "Could not find spwd.db!"
     190    if \VRFileExists(samba.!spwddb) then call _ErrorDataFileNotFound 'Could not find "'samba.!spwddb'"!'
    191191    IF options.!debug == 1 THEN say '  spwd.db        = "'samba.!spwddb'"'
    192192
    193193    samba.!group = unixetc'\group'
    194     if \VRFileExists(samba.!group) then call _ErrorDataFileNotFound "Could not find "samba.!group"!"
     194    if \VRFileExists(samba.!group) then call _ErrorDataFileNotFound 'Could not find "'samba.!group'"!'
    195195    IF options.!debug == 1 THEN say '  group          = "'samba.!group'"'
    196196
    197197    samba.!printcap = unixetc'\printcap'
    198     if \VRFileExists(samba.!spwddb) then call _ErrorDataFileNotFound "Could not find printcap!"
     198    if \VRFileExists(samba.!printcap) then call _ErrorDataFileNotFound 'Could not find "'samba.!printcap'"!'
    199199    IF options.!debug == 1 THEN say '  printcap       = "'samba.!printcap'"'
    200200
Note: See TracChangeset for help on using the changeset viewer.