AutomoxAutomox

Automate an Ubuntu upgrade from 18.04 to 20.04 LTS

S.Sharp
February 14, 2023 at 10:09 pm UTC

Is there a way to automate or script the upgrade of Ubuntu LTS v18.04 to v20.04 

This discussion is archived and closed to replies. Continue it in the Automox Community Slack.

Discuss on Slack

Replies (1)

ElmerP-AutomoxFebruary 15, 2023
#1

Hello,

You can accomplish this with a Worklet.

 

DEVICE TARGETING

Attribute: ‘OS Version’ ‘IS’ ‘Linux Ubuntu 18.04’

 

EVALUATION CODE

#!/bin/bash

exit 1

 

REMEDIATION CODE

#!/bin/bash

sudo do-release-upgrade -f DistUpgradeViewNonInteractive