mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-14 05:58:18 +02:00
Update install-octoprint.ps1
This commit is contained in:
parent
d67c626411
commit
5297e946c5
@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
"⏳ Installing Octoprint (latest stable version)..."
|
"⏳ Installing OctoPrint (snap 'octoprint-sdev', latest stable version)..."
|
||||||
|
|
||||||
& sudo snap install octoprint-sdev
|
& sudo snap install octoprint-sdev --beta
|
||||||
if ($lastExitCode -ne "0") { throw "Can't install Octoprint, is it already installed?" }
|
if ($lastExitCode -ne "0") { throw "Can't install OctoPrint, is it already installed?" }
|
||||||
|
|
||||||
"NOTE: Octoprint's web interface can be reached at http://<HOSTNAME>:5000"
|
"HINT: Access Octoprint's web login at: http://<HOSTNAME>:5000"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user