1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-07-08 16:36:50 +02:00

Add install-octoprint.ps1

This commit is contained in:
Markus Fleschutz
2023-08-16 19:44:24 +02:00
parent 116de7f183
commit d67c626411

@ -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
}