[Dextrose] [OOB PATCH] uy#1769: OOB changes, to set up "WebDAV" share, running in the context of "httpd" service.

Ajay Garg ajay at activitycentral.com
Fri Apr 27 00:18:30 EDT 2012


On Fri, Apr 27, 2012 at 8:53 AM, Anish Mangal <anish at activitycentral.com>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Fri 27 Apr 2012 03:26:52 AM IST, Ajay Garg wrote:
> > diff --git a/config/dextrose3-common.ini b/config/dextrose3-common.ini
> > index 02b67f7..e5236a6 100644
> > --- a/config/dextrose3-common.ini
> > +++ b/config/dextrose3-common.ini
> > @@ -40,6 +40,8 @@ dx3_common_packages_add=
> >       telepathy-idle,
> >       telepathy-sofiasip,
> >       x11vnc,
> > +     httpd,
> > +     chkconfig,
> >
>
> * chkconfig is already present in dextrose3-common.ini
> * Should add a comment about why we are adding these packages.


> >  ; accessibility packages
> >  ; Already added as dependencies for sugar-control-accessibility
> > diff --git a/modules/base/kspost.10.core.inc
> b/modules/base/kspost.10.core.inc
> > index 98d374a..43611f6 100644
> > --- a/modules/base/kspost.10.core.inc
> > +++ b/modules/base/kspost.10.core.inc
> > @@ -215,3 +215,44 @@ echo "keycode 224 = F13" >> $filename
> >  filename="/usr/share/X11/xkb/keycodes/evdev"
> >  SearchAndDeleteLineContainingRegex $filename " *<LWIN> = 133; *"
> >  SearchAndReplaceRegex $filename "<CAPS> = 66;" "<CAPS> = 133;"
> > +
> > +# uy#1769 : Set up "httpd", to host "WebDAV" shares.
> > +filename="/etc/httpd/conf/httpd.conf"
> > +SearchAndReplaceRegex $filename "#<VirtualHost \*:80>" "<VirtualHost
> \*:80>"
> > +SearchAndDeleteLineContainingRegex $filename "#<\/VirtualHost>"
> > +
> > +mkdir -p /var/www/web1/web
> > +mkdir -p /var/www/web1/web/.Sugar-Metadata
> > +
> > +rm /etc/httpd/logs
> > +mkdir /etc/httpd/logs
> > +
> > +cat << EOF >> /etc/httpd/conf/httpd.conf
> > +        DocumentRoot /var/www/web1/web/
> > +        <Directory /var/www/web1/web/>
> > +                Options Indexes MultiViews
> > +                AllowOverride None
> > +                Order allow,deny
> > +                allow from all
> > +        </Directory>
> > +
> > +        Alias /webdav /var/www/web1/web
> > +
> > +        <Location /webdav>
> > +            DAV On
> > +            AuthType Basic
> > +            AuthName "webdav"
> > +            AuthUserFile /var/www/web1/passwd.dav
> > +            Require valid-user
> > +        </Location>
> > +</VirtualHost>
> > +
> > +EOF
> > +
> > +
> > +chmod -R 0777 /var/www/web1/web
> > +chmod -R 0777 /var/www/web1/web/.Sugar-Metadata
> > +htpasswd -bc /var/www/web1/passwd.dav test olpc
> > +/sbin/chkconfig httpd --levels 5 on
> > +
> > +# uy#1769 customizations end.
>
> Dont need to resend this patch with the corrections, I'll make the
> changes while pushing.
>

Thanks Anish.

Regards,
Ajay



> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJPmhEyAAoJEBoxUdDHDZVpCtQH/iYX3vv5yCgp0KmGVY+lgfbo
> 40jo8I9p1LC8d2KRaEHDpCF9czydPVuiFgQTgObiC0JC9amzpIIgE2Ynix71QNOm
> p3gUlCQ86vLR5voGkOluZfXBwB9k16r5WPS+wAwfBHVxXEGmGpvKCaeNgoLJarRf
> +YsD98zMONXT06SY6T3ohRUOsD3mvBJNDDcKntPFk0m6FN3oxxMUUWd9hVMRr1GO
> RqP2WIEB7JzDTcOiGa+TNEHIgkFNAV/HZSu3uDaGd6N0RT617f9FDbgljKu7xmya
> AF43ksvsFYPPv3MEjDmHHEvK9qowt1GB26tpnpc1d73vekM0t07qfll/V2FsOus=
> =YFMs
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/dextrose/attachments/20120427/e4adc92b/attachment.html>


More information about the Dextrose mailing list