From 343a7edc9cbe4278da0ce9385091db108b457baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Sun, 24 Mar 2024 17:37:32 +0000 Subject: [PATCH] Fix server upload issue --- README.org | 3 ++- init.py | 2 +- variables-template.py | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 906124c..e20e2fa 100644 --- a/README.org +++ b/README.org @@ -11,7 +11,8 @@ Rename =variables-template.py= to =variables.py= and edit: - =endlessgames=: a list of “endless” games in the format =title (console)= - =orgpath=: absolute path to the root directory in which =.org= files are stored, including trailing slash - =localpath=: absolute path to this directory, including trailing slash -- =serverpath=: path to directory on the server where files will be uploaded (following =rclone= syntax, this will start with the name of the server, followed by a colon) +- =serverpath=: path to directory on the server where files will be uploaded, including trailing slash +- =rclonesiteroot=: path =rclone= uses to access your webserver - =description=: content for the “about” section (can include HTML tags) - =hue=: theme colour expressed as a hue from 0 to 360 - =consoles=: add or remove consoles following the format provided (=.png= images must be added to the build directory with a filename corresponding with the value of ="img"= for each console) diff --git a/init.py b/init.py index 89ca34c..c081560 100644 --- a/init.py +++ b/init.py @@ -2,4 +2,4 @@ import variables script = open("build.sh", "a") -script.write("#!/usr/bin/env bash\npython3 generate.py\nrclone copy build " + variables.serverpath + " -P") +script.write("#!/usr/bin/env bash\npython3 generate.py\nrclone copy build " + variables.rclonesiteroot + variables.serverpath + " -P") diff --git a/variables-template.py b/variables-template.py index be87931..3b89c5d 100644 --- a/variables-template.py +++ b/variables-template.py @@ -10,6 +10,8 @@ localpath = "" serverpath = "" +rcloneaddress = "" + description = "" hue =