mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-11 17:18:29 +00:00
Run apt as root
This commit is contained in:
parent
b2c3f38766
commit
a32f160d4f
1 changed files with 4 additions and 3 deletions
|
@ -29,7 +29,8 @@ TEMPLATE_PATH = os.path.join(TOOLS_PATH, "template.html")
|
||||||
FILTER_EXE = os.path.join(TOOLS_PATH, "filter.py")
|
FILTER_EXE = os.path.join(TOOLS_PATH, "filter.py")
|
||||||
POSTPROCESSOR_EXE = os.path.join(TOOLS_PATH, "postprocessor.py")
|
POSTPROCESSOR_EXE = os.path.join(TOOLS_PATH, "postprocessor.py")
|
||||||
PANDOC_EXE = "pandoc"
|
PANDOC_EXE = "pandoc"
|
||||||
PANDOC_DOWNLOAD = "https://github.com/jgm/pandoc/releases/download/2.9.2/pandoc-2.9.2-1-amd64.deb"
|
PANDOC_DOWNLOAD = ("https://github.com/jgm/pandoc/releases/download/"
|
||||||
|
"2.9.2/pandoc-2.9.2-1-amd64.deb")
|
||||||
|
|
||||||
|
|
||||||
def convert_doc(src_path, to_path, branch, branches):
|
def convert_doc(src_path, to_path, branch, branches):
|
||||||
|
@ -62,8 +63,8 @@ def install_dependencies():
|
||||||
with TemporaryDirectory() as temp:
|
with TemporaryDirectory() as temp:
|
||||||
subprocess.run(["curl", "--location", "--output", "pandoc.deb",
|
subprocess.run(["curl", "--location", "--output", "pandoc.deb",
|
||||||
PANDOC_DOWNLOAD], check=True, cwd=temp)
|
PANDOC_DOWNLOAD], check=True, cwd=temp)
|
||||||
subprocess.run(["apt", "install", "--assume-yes", "./pandoc.deb"],
|
subprocess.run(["sudo", "apt", "install", "--assume-yes",
|
||||||
check=True, cwd=temp)
|
"./pandoc.deb"], check=True, cwd=temp)
|
||||||
|
|
||||||
|
|
||||||
def natural_sort_key(s):
|
def natural_sort_key(s):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue