Introduced images and increased storage.

This commit is contained in:
Johanna Rührig 2025-01-01 14:42:00 +01:00
parent de8178a672
commit 44ddcafae1
3 changed files with 8 additions and 6 deletions

View File

@ -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}"

View File

@ -38,8 +38,9 @@ echo "<Location /server-status>\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"

View File

@ -20,7 +20,7 @@
"resources": {
"cpu": 1,
"ram": 512,
"hdd": 2,
"hdd": 10,
"os": "debian",
"version": "12"
}