Skip to content

Commit 563af01

Browse files
authored
Merge pull request #193384 from ericd-mst-github/patch-7
March freshness for update-linux-agent.md
2 parents 7cafe76 + 8f939eb commit 563af01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/virtual-machines/extensions/update-linux-agent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ AutoUpdate.Enabled=y
251251
To enable run:
252252

253253
```bash
254-
sudo sed -i 's/# AutoUpdate.Enabled=n/AutoUpdate.Enabled=y/g' /etc/waagent.conf
254+
sudo sed -i 's/AutoUpdate.Enabled=n.*/AutoUpdate.Enabled=y/g' /etc/waagent.conf
255255
```
256256

257257
Restart the waagent service
@@ -322,14 +322,14 @@ AutoUpdate.Enabled=y
322322
To enable run:
323323

324324
```bash
325-
sudo sed -i 's/# AutoUpdate.Enabled=n/AutoUpdate.Enabled=y/g' /etc/waagent.conf
325+
sudo sed -i 's/AutoUpdate.Enabled=n.*/AutoUpdate.Enabled=y/g' /etc/waagent.conf
326326
Restart the waagent service
327327
sudo systemctl restart walinuxagent.service
328328
```
329329

330330
## Oracle Linux 6 and Oracle Linux 7
331331

332-
For Oracle Linux, make sure that the `Addons` repository is enabled. Choose to edit the file `/etc/yum.repos.d/public-yum-ol6.repo`(Oracle Linux 6) or `/etc/yum.repos.d/public-yum-ol7.repo`(Oracle Linux), and change the line `enabled=0` to `enabled=1` under **[ol6_addons]** or **[ol7_addons]** in this file.
332+
For Oracle Linux, make sure that the `Addons` repository is enabled. Choose to edit the file `/etc/yum.repos.d/public-yum-ol6.repo`(Oracle Linux 6) or `/etc/yum.repos.d/oracle-linux-o17.repo`(Oracle Linux), and change the line `enabled=0` to `enabled=1` under **[ol6_addons]** or **[ol7_addons]** in this file.
333333

334334
Then, to install the latest version of the Azure Linux Agent, type:
335335

0 commit comments

Comments
 (0)