create setup_composer script

This commit is contained in:
2026-03-28 11:50:38 +01:00
parent aa42b38fb9
commit c4679716b4
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
setup_composer() {
echo "Installing dependencies..."
mkdir -p /var/www/.composer/cache
chown -R www-data:www-data /var/www/.composer
if [ -f composer.json ]; then
run composer install --no-interaction --prefer-dist
fi
}