Merge pull request #34127 from nicknovitski/patch-3
google-cloud-sdk: disable component updater
This commit is contained in:
commit
84d9ecc5f6
@ -65,6 +65,13 @@ in stdenv.mkDerivation rec {
|
|||||||
ln -s $programPath $binaryPath
|
ln -s $programPath $binaryPath
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# disable component updater and update check
|
||||||
|
substituteInPlace $out/google-cloud-sdk/lib/googlecloudsdk/core/config.json \
|
||||||
|
--replace "\"disable_updater\": false" "\"disable_updater\": true"
|
||||||
|
echo "
|
||||||
|
[component_manager]
|
||||||
|
disable_update_check = true" >> $out/google-cloud-sdk/properties
|
||||||
|
|
||||||
# setup bash completion
|
# setup bash completion
|
||||||
mkdir -p "$out/etc/bash_completion.d/"
|
mkdir -p "$out/etc/bash_completion.d/"
|
||||||
mv "$out/google-cloud-sdk/completion.bash.inc" "$out/etc/bash_completion.d/gcloud.inc"
|
mv "$out/google-cloud-sdk/completion.bash.inc" "$out/etc/bash_completion.d/gcloud.inc"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user