mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-22 18:08:18 +02:00
Add install-octoprint.ps1
This commit is contained in:
parent
116de7f183
commit
d67c626411
13
Scripts/install-octoprint.ps1
Normal file
13
Scripts/install-octoprint.ps1
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
try {
|
||||||
|
"⏳ Installing Octoprint (latest stable version)..."
|
||||||
|
|
||||||
|
& sudo snap install octoprint-sdev
|
||||||
|
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"
|
||||||
|
exit 0 # success
|
||||||
|
} catch {
|
||||||
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
exit 1
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user