Commit 0067a7bd authored by iv's avatar iv

Add shebang and change variable name in runflaskdav script.

parent 724d0ea9
PATH="/"
#! /bin/bash
WEBDAV_PATH="/"
if ! [[ -z "$1" ]] ; then
PATH="$1"
WEBDAV_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}"
/usr/local/bin/python flaskdav.py --cert ssl.cert --key ssl.key --path "${WEBDAV_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