mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 15:02:51 +03:00
Use https for wiki updates
This commit is contained in:
parent
69619a5acf
commit
b9fa583c99
3 changed files with 3 additions and 2 deletions
|
@ -66,6 +66,7 @@ keyaliases['com.example.another.plugin'] = '@com.example.another'
|
|||
serverwebroot = 'user@example:/var/www/repo'
|
||||
|
||||
#Wiki details
|
||||
wiki_protocol = "http"
|
||||
wiki_server = "server"
|
||||
wiki_path = "/wiki/"
|
||||
wiki_user = "login"
|
||||
|
|
|
@ -663,7 +663,7 @@ def main():
|
|||
|
||||
if options.wiki:
|
||||
import mwclient
|
||||
site = mwclient.Site(wiki_server, path=wiki_path)
|
||||
site = mwclient.Site((wiki_protocol, wiki_server), path=wiki_path)
|
||||
site.login(wiki_user, wiki_password)
|
||||
|
||||
# Build applications...
|
||||
|
|
|
@ -42,7 +42,7 @@ def update_wiki(apps, apks, verbose=False):
|
|||
print "Updating wiki"
|
||||
wikicat = 'Apps'
|
||||
import mwclient
|
||||
site = mwclient.Site(wiki_server, path=wiki_path)
|
||||
site = mwclient.Site((wiki_protocol, wiki_server), path=wiki_path)
|
||||
site.login(wiki_user, wiki_password)
|
||||
generated_pages = {}
|
||||
for app in apps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue