Update PHP libraries in /usr/share/* or /usr/lib/*
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
420 B

#!/bin/sh
UPDATEONLY=$1
#Search for PHP apps (which use given library) and rebuild its autoloader to use new version
if [ -z $WEB_USER ]; then
. /usr/lib/composer-debian/webusergroup
fi
egrep -ils -d skip --include=composer.json "\"${UPDATEONLY}\"" /usr/lib/*/* | while read COMPJSON; do
echo composer-global-update found: ${COMPJSON} ${UPDATEONLY}
composer-debian `basename $(dirname ${COMPJSON})`
done