From 44ddcafae113eaaeb48f3dbfa342cab718de31ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20R=C3=BChrig?= Date: Wed, 1 Jan 2025 14:42:00 +0100 Subject: [PATCH] Introduced images and increased storage. --- ct/5etools.sh | 7 ++++--- install/5etools-install.sh | 5 +++-- json/5etools.json | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ct/5etools.sh b/ct/5etools.sh index d1508d59..3cb9bc55 100644 --- a/ct/5etools.sh +++ b/ct/5etools.sh @@ -10,7 +10,7 @@ APP="5etools" TAGS="wiki" var_cpu="1" var_ram="512" -var_disk="2" +var_disk="10" var_os="debian" var_version="12" var_unprivileged="1" @@ -51,8 +51,9 @@ function update_script() { # Execute Update wget -q "https://github.com/5etools-mirror-3/5etools-src/archive/refs/tags/${RELEASE}.zip" - unzip -q "${RELEASE}.zip" - mv "${APP}-src-${RELEASE:1}/" "/opt/${APP}" + unzip -q "${RELEASE}.zip" -d "/opt/${APP}" + wget -q "https://github.com/5etools-mirror-2/5etools-img/archive/refs/tags/${RELEASE}.zip" + unzip -q "${RELEASE}.zip" -d "/opt/${APP}/img" chown -R www-data: "/opt/${APP}" chmod -R 755 "/opt/${APP}" diff --git a/install/5etools-install.sh b/install/5etools-install.sh index 780135a3..cdb29ca0 100644 --- a/install/5etools-install.sh +++ b/install/5etools-install.sh @@ -38,8 +38,9 @@ echo "\n"\ rm -rf /var/www/html RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-3/5etools-src/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') wget -q "https://github.com/5etools-mirror-3/5etools-src/archive/refs/tags/${RELEASE}.zip" -unzip -q "${RELEASE}.zip" -mv "5etools-src-${RELEASE:1}/" "/opt/5etools" +unzip -q "${RELEASE}.zip" -d "/opt/5etools" +wget -q "https://github.com/5etools-mirror-2/5etools-img/archive/refs/tags/${RELEASE}.zip" +unzip -q "${RELEASE}.zip" -d "/opt/5etools/img" ln -s "/opt/5etools" /var/www/html chown -R www-data: "/opt/5etools" diff --git a/json/5etools.json b/json/5etools.json index 277c75f8..4184a9f0 100644 --- a/json/5etools.json +++ b/json/5etools.json @@ -20,7 +20,7 @@ "resources": { "cpu": 1, "ram": 512, - "hdd": 2, + "hdd": 10, "os": "debian", "version": "12" }