Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAjay Garg <ajay@activitycentral.com>2012-04-27 02:56:52 (GMT)
committer Anish Mangal <anish@activitycentral.com>2012-04-27 03:20:45 (GMT)
commit0c261eaccfb09cb638d4d20f6c99467caa6b06cb (patch)
treefb11444b617176d8dbe5a00b959164303fc61cea /modules
parenta563218f588c4041203648f95ce061e32e374912 (diff)
uy#1769: OOB changes, to set up "WebDAV" share, running in the context of "httpd" service.
Diffstat (limited to 'modules')
-rw-r--r--modules/base/kspost.10.core.inc41
1 files changed, 41 insertions, 0 deletions
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.