Started integrating apache2 DAV; not yet fully tested

This commit is contained in:
frisco 2008-11-28 06:49:50 +00:00
parent 415e11745c
commit c5643b0434
3 changed files with 23 additions and 3 deletions

View file

@ -79,10 +79,17 @@ function configure_normal()
############ webdav ############
#TODO: FIXME: configure port; add webdav link in web frontend
#this mkdir may be redundant with the DAV event script (TODO)
mkdir -p /var/cache/cryptobox-server/settings/misc/apache2_dav.conf.d
sed -i 's/^NO_START=.*$/NO_START=0/' /etc/default/apache2
cp /usr/share/doc/cryptobox-server/event-scripts/apache2_dav /etc/cryptobox-server/events.d/apache2_dav
chmod +x /etc/cryptobox-server/events.d/apache2_dav
# CryptoNAS's apache2_dav.conf should already be in /etc/apache2/conf.d
# in SVN.
#Tell apache2 NOT to listen on non-DAV ports
echo "#Leave 80 and 443 open for CryptoNAS's use" > /etc/apache2/ports.conf
echo "Listen 8080" >> /etc/apache2/ports.conf
########### boot up ###########
# turn off creation of "/etc/nologin" (read-only fs)
@ -92,8 +99,8 @@ function configure_normal()
######### shutdown #########
# Remove the prompt to eject CD
rm -r /etc/rc0.d/*casper
rm -r /etc/rc6.d/*casper
rm -f /etc/rc0.d/*casper
rm -f /etc/rc6.d/*casper
######### devices ##########
# create tun device for running under qemu