From 4ab8a9c8ec61300a2a472efe004ff930659e69cb Mon Sep 17 00:00:00 2001 From: GRMrGecko Date: Mon, 19 Feb 2024 19:26:55 -0600 Subject: [PATCH] Better template default path. --- mirror-file-generator.sh | 2 +- .../templates}/default/footer.html | 0 .../templates}/default/footer.txt | 0 .../templates}/default/header.html | 0 .../templates}/default/repo.html | 0 .../templates}/default/section.html | 0 6 files changed, 1 insertion(+), 1 deletion(-) rename {file-generator-templates => mirror-file-generator/templates}/default/footer.html (100%) rename {file-generator-templates => mirror-file-generator/templates}/default/footer.txt (100%) rename {file-generator-templates => mirror-file-generator/templates}/default/header.html (100%) rename {file-generator-templates => mirror-file-generator/templates}/default/repo.html (100%) rename {file-generator-templates => mirror-file-generator/templates}/default/section.html (100%) diff --git a/mirror-file-generator.sh b/mirror-file-generator.sh index 067a6bd..7edf9d3 100644 --- a/mirror-file-generator.sh +++ b/mirror-file-generator.sh @@ -17,7 +17,7 @@ LOGFILE="/var/log/mirror-sync/$PROGRAM.log" # Default variables SECTIONS="official unofficial" section_default="unofficial" -template_dir="/usr/local/share/file-generator-templates" +template_dir="/usr/local/share/mirror-file-generator/templates" index_generate=1 index_file_name="index.html" footer_generate=1 diff --git a/file-generator-templates/default/footer.html b/mirror-file-generator/templates/default/footer.html similarity index 100% rename from file-generator-templates/default/footer.html rename to mirror-file-generator/templates/default/footer.html diff --git a/file-generator-templates/default/footer.txt b/mirror-file-generator/templates/default/footer.txt similarity index 100% rename from file-generator-templates/default/footer.txt rename to mirror-file-generator/templates/default/footer.txt diff --git a/file-generator-templates/default/header.html b/mirror-file-generator/templates/default/header.html similarity index 100% rename from file-generator-templates/default/header.html rename to mirror-file-generator/templates/default/header.html diff --git a/file-generator-templates/default/repo.html b/mirror-file-generator/templates/default/repo.html similarity index 100% rename from file-generator-templates/default/repo.html rename to mirror-file-generator/templates/default/repo.html diff --git a/file-generator-templates/default/section.html b/mirror-file-generator/templates/default/section.html similarity index 100% rename from file-generator-templates/default/section.html rename to mirror-file-generator/templates/default/section.html