mirror of
https://github.com/jbowdre/vsphere-k8s.git
synced 2024-11-28 18:02:19 +00:00
7 lines
No EOL
278 B
Bash
7 lines
No EOL
278 B
Bash
#!/bin/sh -eu
|
|
echo '>> Preserving network settings...'
|
|
if grep -q 'manual_cache_clean' /etc/cloud/cloud.cfg; then
|
|
sudo sed -i 's/^manual_cache_clean.*$/manual_cache_clean: True/' /etc/cloud/cloud.cfg
|
|
else
|
|
echo 'manual_cache_clean: True' | sudo tee -a /etc/cloud/cloud.cfg
|
|
fi |