Line 80: |
Line 80: |
| my $db = esmith::ConfigDB->open_ro("WebShare") | | my $db = esmith::ConfigDB->open_ro("WebShare") |
| or return "# webshare disabled\n"; | | or return "# webshare disabled\n"; |
− | | + | |
| my @webshare = $db->get_all_by_prop( type => 'WebShare' ); | | my @webshare = $db->get_all_by_prop( type => 'WebShare' ); |
− | | + | |
| foreach $webshare (@webshare) { | | foreach $webshare (@webshare) { |
| #name | | #name |
Line 91: |
Line 91: |
| my $smeusers = $webshare->prop('SmeUsers') || "no"; | | my $smeusers = $webshare->prop('SmeUsers') || "no"; |
| $OUT .= "# webshare\/$key\n"; | | $OUT .= "# webshare\/$key\n"; |
− | | + | |
| if ( "$useibay" eq "no" ) { | | if ( "$useibay" eq "no" ) { |
| $OUT .= "Alias \/webshare\/$key \/opt\/webshare\/$key\n"; | | $OUT .= "Alias \/webshare\/$key \/opt\/webshare\/$key\n"; |
Line 117: |
Line 117: |
| $OUT .= " AuthName \"Restricted $key access only\"\n"; | | $OUT .= " AuthName \"Restricted $key access only\"\n"; |
| $OUT .= " AuthType Basic\n"; | | $OUT .= " AuthType Basic\n"; |
− | | + | |
| if ( "$smeusers" eq "no" ) { | | if ( "$smeusers" eq "no" ) { |
| $OUT .= " AuthUserFile \/home\/e-smith\/db\/webshare\/htpasswd.$key\n"; | | $OUT .= " AuthUserFile \/home\/e-smith\/db\/webshare\/htpasswd.$key\n"; |
Line 157: |
Line 157: |
| Access the ibay webshare files locally via samba network share | | Access the ibay webshare files locally via samba network share |
| \\servername\ibaywebsharename\files | | \\servername\ibaywebsharename\files |
− |
| |
| | | |
| === Additional information === | | === Additional information === |