From f6942653cec1aa41607b22268146213586ba07f1 Mon Sep 17 00:00:00 2001
From: Michael Vasseur <14887731+vmcj@users.noreply.github.com>
Date: Sun, 14 Jul 2024 20:03:56 +0200
Subject: [PATCH] Fix demoweb installation with new composer location

This was also fixed in the crontab on domjudge.org for various commands.
The composer file is now in the webapp folder in the main repo.
---
 update_demoweb.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update_demoweb.sh b/update_demoweb.sh
index aa040a15..fceedc27 100755
--- a/update_demoweb.sh
+++ b/update_demoweb.sh
@@ -19,7 +19,7 @@ make QUIET=1 maintainer-clean
 make QUIET=1 MAINT_CXFLAGS='-g -O2 -Wall -fPIE -Wformat -Wformat-security' \
 	inplace-conf >/dev/null 2>&1 || true
 make QUIET=1 inplace-install docs >/dev/null 2>&1
-composer auto-scripts >/dev/null 2>&1
+(cd webapp && composer auto-scripts >/dev/null 2>&1)
 
 # Reset database to known good state:
 mysql $MYSQLOPTS "$DBNAME" < domjudge_demo_remove.sql