Fix composer setup on self-hosted

This commit is contained in:
Shivam Mathur 2021-03-17 22:04:42 +05:30
parent 0ce7328fd7
commit e6a3eb1258
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -215,7 +215,8 @@ configure_composer() {
exit 1
fi
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"
fi
composer -q config -g process-timeout 0