Started integrating apache2 DAV; not yet fully tested
This commit is contained in:
parent
415e11745c
commit
c5643b0434
3 changed files with 23 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue