How can I run a command in background inside composer script and go to next command. I tried something like below but It still hangs up until the chgrp command finishes and doesn't execute next command.
composer.json
"post-install-cmd": [
"sh ./scripts/composer/post-install.sh"
],
post-install.sh
#!/bin/sh
set -ex
echo "Setting appropriate permissions"
nohup chgrp -R www web &
echo "Executing next command"