From 4eea18be49b42ec22269e9489ecb426433fbbdbc Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 16 May 2016 17:58:19 +0300 Subject: Fix so can handle more than just qvarn.org --- NEWS | 1 + ql-ikiwiki-publish | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a84c50d..546378a 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ NEWS for ql-ikiwiki-publish Version 0.4+git, not yet released --------------------------------- +* Fix the script so it can handle more than just www.qvarn.org. Version 0.4, released 2016-05-16 --------------------------------- diff --git a/ql-ikiwiki-publish b/ql-ikiwiki-publish index 2021c55..927c83e 100755 --- a/ql-ikiwiki-publish +++ b/ql-ikiwiki-publish @@ -43,7 +43,8 @@ def mangle_setup(src, dest, html): static_http = sys.argv[1] -rsync_target = 'static@{}:/srv/http/www.qvarn.org/.'.format(static_http) +dirname = sys.argv[2] +rsync_target = 'static@{}:/srv/http/{}/.'.format(static_http, dirname) T = tempfile.mkdtemp() try: -- cgit v1.2.1