Changeset 1019 for trunk/guitools/sscc/sscc.vrx
- Timestamp:
- May 10, 2017, 11:53:58 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/sscc/sscc.vrx
r1013 r1019 1189 1189 return 1190 1190 1191 1191 1192 /*:VRX _SmbConfCreateDefault 1192 1193 */ … … 1271 1272 Migrate = (arg(1) = 1) 1272 1273 if \Migrate then do /* when migrating these 4 lines are there already */ 1274 call lineout smbconf, '# Samba config file created using SSCC ver. 'word(VRGet("Main","Hinttext"),2) 1275 call lineout smbconf, '# from 'value("USER",,'OS2ENVIRONMENT')'@'value("HOSTNAME",,'OS2ENVIRONMENT') 1276 call lineout smbconf, '# Date: 'date()' 'time() 1273 1277 section = '[global]' 1274 1278 call lineout smbconf, section 1275 1279 call lineout smbconf, Indent||'workgroup = 'workgroup 1276 1280 call lineout smbconf, Indent||'netbios name = 'value('HOSTNAME',,'OS2ENVIRONMENT') 1277 call lineout smbconf, Indent||'server string = %h Samba Server for eCS (OS/2)'1278 call lineout smbconf, Indent||'comment = Samba Server for eCS (OS/2)'1281 call lineout smbconf, Indent||'server string = %h Samba Server for OS/2 based systems' 1282 call lineout smbconf, Indent||'comment = Samba Server for OS/2 based systems' 1279 1283 end 1280 1284 … … 1315 1319 call lineout smbconf, Indent||'lm announce = Yes' 1316 1320 call lineout smbconf, Indent||'wins support = Yes' 1321 call lineout smbconf, '#'Indent||'Enable next line to overcome Ticket #282' 1322 call lineout smbconf, '#'Indent||'nmbd bind explicit broadcast = No' 1317 1323 call lineout smbconf, Indent||'wide links = No' 1318 1324 ok = SysFileTree(samba.!printcap,exist.,'FO') … … 1349 1355 call lineout smbconf, '[HOMES]' 1350 1356 call lineout smbconf, Indent||"comment = Home directory" 1351 smbhome = samba.!bin'\homes'1357 smbhome = ETC'\samba\homes' 1352 1358 Home = strip(value('Home',,'OS2ENVIRONMENT'),'T','\') 1353 1359 if Home <> '' then do … … 1405 1411 1406 1412 /* user scripts */ 1407 call lineout smbconf, ' ;'||Indent||'user scripts'1413 call lineout smbconf, '#'||Indent||'user scripts' 1408 1414 call lineout smbconf, Indent||'add user script = '||smbtools||'\usermod.cmd -a "%u"' 1409 1415 call lineout smbconf, Indent||'delete user script = '||smbtools||'\usermod.cmd -x "%u"' … … 1413 1419 1414 1420 /* group scripts */ 1415 call lineout smbconf, ' ;'||Indent||'group scripts'1421 call lineout smbconf, '#'||Indent||'group scripts' 1416 1422 call lineout smbconf, Indent||'add group script = '||smbtools||'\groupmod.cmd -a "%g"' 1417 1423 call lineout smbconf, Indent||'delete group script = '||smbtools||'\groupmod.cmd -x "%g"' … … 1420 1426 1421 1427 /* share scripts */ 1422 call lineout smbconf, ' ;'||Indent||'share scripts'1428 call lineout smbconf, '#'||Indent||'share scripts' 1423 1429 call lineout smbconf, Indent||'add share command = '||smbtools||'\addshare.cmd' 1424 1430 call lineout smbconf, Indent||'change share command = '||smbtools||'\changeshare.cmd' … … 1426 1432 1427 1433 /* other scripts */ 1428 call lineout smbconf, ' ;'||Indent||'other scripts'1434 call lineout smbconf, '#'||Indent||'other scripts' 1429 1435 call lineout smbconf, Indent||'enumports command = '||smbtools||'\enumports.cmd' 1430 1436 call lineout smbconf, Indent … … 1924 1930 return 1925 1931 1932 /*:VRX CB_NoRoot_Click 1933 */ 1934 CB_NoRoot_Click: 1935 if VRGet("CB_NoRoot","set") then do 1936 ok = VRset("EF_RootPassword","BackColor","PaleGray") 1937 ok = VRset("EF_RootPassword_Repeat","BackColor","PaleGray") 1938 ok = VRset("EF_RootPassword","Enabled", 0) 1939 ok = VRset("EF_RootPassword_Repeat","Enabled", 0) 1940 end 1941 else do 1942 ok = VRset("EF_RootPassword","BackColor","<default>") 1943 ok = VRset("EF_RootPassword_Repeat","BackColor","<default>") 1944 ok = VRset("EF_RootPassword","Enabled", 1) 1945 ok = VRset("EF_RootPassword_Repeat","Enabled", 1) 1946 end 1947 return 1948 1926 1949 /*:VRX CB_Null_passwords_Click 1927 1950 */ … … 2264 2287 return 2265 2288 2289 /*:VRX EF_RootPassword_Change 2290 */ 2291 EF_RootPassword_Change: 2292 if length(VRGet("EF_RootPassword","Value")) < 5 then do 2293 ok = VRSet("EF_RootPassword","ForeColor", "Red") 2294 end 2295 else ok = VRSet("EF_RootPassword","ForeColor", "<default>") 2296 return 2297 2266 2298 /*:VRX EF_SECURITY_Change 2267 2299 */ … … 2356 2388 call _ShowMsg 2357 2389 ok = SysSetObjectData("<sscc>","PARAMETERS=/config;") 2358 say "SysSetObjectData ok="ok2390 say "SysSetObjectData ok="ok 2359 2391 call Installer_Fini 2360 2392 return … … 3207 3239 VRGet("Main","WindowState") = "Minimized" then ok = VRMethod("Main", "Restore") 3208 3240 3209 if samba.!testparmexe <> "" then do 3210 address cmd samba.!testparmexe' -s 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm' 3241 if samba.!testparmexe <> "" & Installmode = 0 then do 3242 if datatype("log_level") <> "NUM" then log_level = 2 3243 address cmd samba.!testparmexe' -s -d='log_level' 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm' 3211 3244 call _SmbConfCommitChanges 3212 3245 end … … 3224 3257 return 3225 3258 3259 say samba.!testparmexe' -s -d='log_level' 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm' 3226 3260 /*:VRX RB_PDC_Click 3227 3261 */ … … 3251 3285 */ 3252 3286 RemoveConfig_Close: 3287 ok = SysSetObjectData("<sscc>","PARAMETERS=/config;") 3288 say "SysSetObjectData ok="ok 3253 3289 call RemoveConfig_Fini 3254 3290 return
Note:
See TracChangeset
for help on using the changeset viewer.