mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 16:03:22 +01:00
Update upgrade-ubuntu.ps1
This commit is contained in:
parent
f1161e05c7
commit
82d6eee187
26
Scripts/nohup.out
Normal file
26
Scripts/nohup.out
Normal file
@ -0,0 +1,26 @@
|
||||
Initializing daemon...
|
||||
go-ipfs version: 0.11.0-67220edaa
|
||||
Repo version: 11
|
||||
System version: amd64/linux
|
||||
Golang version: go1.16.11
|
||||
Swarm listening on /ip4/127.0.0.1/tcp/4001
|
||||
Swarm listening on /ip4/127.0.0.1/udp/4001/quic
|
||||
Swarm listening on /ip4/192.168.178.36/tcp/4001
|
||||
Swarm listening on /ip4/192.168.178.36/udp/4001/quic
|
||||
Swarm listening on /ip6/2003:f2:6738:8600:6e62:6dff:fe3b:8765/tcp/4001
|
||||
Swarm listening on /ip6/2003:f2:6738:8600:6e62:6dff:fe3b:8765/udp/4001/quic
|
||||
Swarm listening on /ip6/::1/tcp/4001
|
||||
Swarm listening on /ip6/::1/udp/4001/quic
|
||||
Swarm listening on /p2p-circuit
|
||||
Swarm announcing /ip4/127.0.0.1/tcp/4001
|
||||
Swarm announcing /ip4/127.0.0.1/udp/4001/quic
|
||||
Swarm announcing /ip4/217.88.86.130/udp/4001/quic
|
||||
Swarm announcing /ip6/2003:f2:6738:8600:6e62:6dff:fe3b:8765/tcp/4001
|
||||
Swarm announcing /ip6/2003:f2:6738:8600:6e62:6dff:fe3b:8765/udp/4001/quic
|
||||
Swarm announcing /ip6/::1/tcp/4001
|
||||
Swarm announcing /ip6/::1/udp/4001/quic
|
||||
API server listening on /ip4/0.0.0.0/tcp/5001
|
||||
WebUI: http://0.0.0.0:5001/webui
|
||||
Gateway (readonly) server listening on /ip4/0.0.0.0/tcp/8765
|
||||
Daemon is ready
|
||||
2021-12-28T10:37:17.711+0100 ERROR bitswap providerquerymanager/providerquerymanager.go:338 Received provider (12D3KooWE7DQ3GckSHfdchK5XG3qvsABVFFWH4UokeaL7j23PfVA) for cid (Qme2uBkw6n2xxn3B7aSmTpnouKb9bQCSWDJxXNmicZDxsb) not requested
|
@ -1,8 +1,8 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Upgrades Ubuntu Linux to the latest (LTS) release
|
||||
Upgrades Ubuntu Linux
|
||||
.DESCRIPTION
|
||||
This script upgrades Ubuntu Linux to the latest (LTS) release.
|
||||
This PowerShell script upgrades Ubuntu Linux to the latest (LTS) release.
|
||||
.EXAMPLE
|
||||
PS> .\upgrade-ubuntu.ps1
|
||||
.NOTES
|
||||
@ -14,12 +14,12 @@
|
||||
try {
|
||||
""
|
||||
"👉 Step 1/4: Perform a backup"
|
||||
"It's strongly recommended to perform a backup of your data BEFORE upgrading the OS!"
|
||||
"It's strongly recommended to backup your data BEFORE the upgrade!"
|
||||
$Confirm = read-host "Press <Return> to continue..."
|
||||
|
||||
""
|
||||
"👉 Step 2/4: Install update-manager-core, Upgrade Packages & Reboot"
|
||||
$Confirm = read-host "Enter <yes> to perform this step (otherwise this step will be skipped)"
|
||||
$Confirm = read-host "Enter <yes> to perform this step (otherwise it will be skipped)"
|
||||
if ($Confirm -eq "yes") {
|
||||
sudo apt install update-manager-core
|
||||
sudo apt update
|
||||
@ -30,17 +30,19 @@ try {
|
||||
|
||||
""
|
||||
"👉 Step 3/4: Remove obsolete kernel modules"
|
||||
$Confirm = read-host "Enter <yes> to perform this step (otherwise this step will be skipped)"
|
||||
$Confirm = read-host "Enter <yes> to perform this step (otherwise it will be skipped)"
|
||||
if ($Confirm -eq "yes") {
|
||||
sudo apt --purge autoremove
|
||||
}
|
||||
|
||||
""
|
||||
"👉 Step 4/4: Upgrade Ubuntu & reboot"
|
||||
$Confirm = read-host "Enter <yes> to perform this step (otherwise this step will be skipped)"
|
||||
if ($Confirm -eq "yes") {
|
||||
sudo do-release-upgrade # to latest LTS version
|
||||
#sudo do-release-upgrade -d # to latest supported release
|
||||
$Confirm = read-host "Enter <LTS> to upgrade to latest LTS release, <latest> to upgrade to latest Ubuntu release (otherwise this step will be skipped)"
|
||||
if ($Confirm -eq "LTS") {
|
||||
sudo do-release-upgrade
|
||||
sudo reboot
|
||||
} elseif ($Confirm -eq "latest") {
|
||||
sudo do-release-upgrade -d
|
||||
sudo reboot
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user