mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 21:33:06 +07:00
Fix composer setup on self-hosted
This commit is contained in:
parent
0ce7328fd7
commit
e6a3eb1258
@ -215,7 +215,8 @@ configure_composer() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if ! [ -e "$composer_json" ]; then
|
if ! [ -e "$composer_json" ]; then
|
||||||
echo '{}' | tee "$composer_json" >/dev/null 2>&1
|
sudo mkdir -p "$(dirname "$composer_json")"
|
||||||
|
echo '{}' | tee "$composer_json" >/dev/null
|
||||||
sudo chmod 644 "$composer_json"
|
sudo chmod 644 "$composer_json"
|
||||||
fi
|
fi
|
||||||
composer -q config -g process-timeout 0
|
composer -q config -g process-timeout 0
|
||||||
|
Loading…
Reference in New Issue
Block a user