Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flaskdav
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
flaskdav
Commits
0067a7bd
Commit
0067a7bd
authored
Feb 19, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add shebang and change variable name in runflaskdav script.
parent
724d0ea9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
runflaskdav
runflaskdav
+5
-3
No files found.
runflaskdav
View file @
0067a7bd
PATH="/"
#! /bin/bash
WEBDAV_PATH
=
"/"
if
!
[[
-z
"
$1
"
]]
;
then
if
!
[[
-z
"
$1
"
]]
;
then
PATH="$1"
WEBDAV_
PATH
=
"
$1
"
fi
fi
if
!
[
-r
"ssl.key"
-a
-r
"ssl.cert"
]
;
then
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"
/usr/bin/openssl req
-nodes
-newkey
rsa
-days
365
-keyout
"ssl.key"
-x509
-out
"ssl.cert"
fi
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
}
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment