Skip to content

Commit 8f939eb

Browse files
Update update-linux-agent.md
line 254, 325: original sed command currently does not change the AutoUpdate setting ('n' by default on Debian 9), the Debian 9 image in the marketplace seems to have changed the wording of the commented line before the AutoUpdate setting. line 332: repo name now appears to be oracle-linux-o17.repo when looking in a provisioned Oracle Linux 7 VM's addon settings. ------- cc: @MsGabsta
1 parent bc3a7d8 commit 8f939eb

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)