Commit 0f27a51f authored by iv's avatar iv

Add bash script to run flaskdav in one line.

parent fb94610c
...@@ -24,6 +24,16 @@ The HMAC key is reset each time you restart the server. ...@@ -24,6 +24,16 @@ The HMAC key is reset each time you restart the server.
tells the server to use the generated SSL key and certificate, and to give access to the full system. tells the server to use the generated SSL key and certificate, and to give access to the full system.
## Script
On NayuOS, do:
bash runflaskdav
to run flaskdav on / or give an absolute path as argument:
bash runflaskdav /media/removable
## LICENSE ## LICENSE
flaskdav is under the GPL2 license. flaskdav is under the GPL2 license.
......
PATH="/"
if ! [[ -z "$1" ]] ; then
PATH="$1"
fi
if ! [ -r "ssl.key" -a -r "ssl.cert" ] ; then
/usr/bin/openssl req -nodes -newkey rsa -days 365 -keyout "ssl.key" -x509 -out "ssl.cert"
fi
/usr/local/bin/python flaskdav.py --cert ssl.cert --key ssl.key --path "${PATH}"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment