From da42f6db52fd4c6868bd39d357987e59a3d8af53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20BENO=C3=8ET?= Date: Tue, 31 Dec 2024 19:53:17 +0100 Subject: [PATCH] feat: update game interface to support planet pictures --- Dockerfile | 16 ++++++++++++++-- scripts/config.inc | 2 +- scripts/legacyworlds.xml | 2 +- scripts/site/beta5/page.inc | 3 ++- site/static/beta5/js/pg_alliance-en.js | 4 ++-- site/static/beta5/js/pg_map.js | 6 +++--- site/static/beta5/js/pg_market.js | 4 ++-- site/static/beta5/js/pg_money.js | 2 +- site/static/beta5/js/pg_planet-en.js | 2 +- site/static/beta5/js/pg_planets.js | 2 +- 10 files changed, 28 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8cabb07..1478710 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ RUN < /etc/apache2/ports.conf cat > /etc/apache2/sites-available/lwb5-main.conf < @@ -59,7 +62,16 @@ EOC a2dissite 000-default a2ensite lwb5-main a2ensite lwb5-admin + + mkdir /var/cache/lw + chmod 1777 /var/cache/lw + + mkdir /var/spool/pgen + chgrp www-data /var/spool/pgen + chmod 1775 /var/spool/pgen EOF +VOLUME /var/spool/pgen /var/cache/lw + EXPOSE 80 81 ENTRYPOINT ["/opt/lwb5/run-lwb5.sh"] diff --git a/scripts/config.inc b/scripts/config.inc index 8ab50cb..6313d14 100644 --- a/scripts/config.inc +++ b/scripts/config.inc @@ -12,7 +12,7 @@ $config = array( "scriptdir" => __DIR__, // Path to the cache - "cachedir" => "/tmp/lwcache", + "cachedir" => "/var/cache/lw", // Debugging level "debug" => 2, diff --git a/scripts/legacyworlds.xml b/scripts/legacyworlds.xml index 4718129..22dff12 100644 --- a/scripts/legacyworlds.xml +++ b/scripts/legacyworlds.xml @@ -14,7 +14,7 @@ - +