mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-18 10:41:00 +01:00
Update install-octoprint.ps1
This commit is contained in:
parent
5297e946c5
commit
2fa471c798
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
"⏳ Installing OctoPrint (snap 'octoprint-sdev', latest stable version)..."
|
"⏳ Installing OctoPrint (snap 'octoprint-pfs', channel 'edge')..."
|
||||||
|
|
||||||
& sudo snap install octoprint-sdev --beta
|
& sudo snap install octoprint-pfs --edge
|
||||||
if ($lastExitCode -ne "0") { throw "Can't install OctoPrint, is it already installed?" }
|
if ($lastExitCode -ne "0") { throw "'snap install octoprint-pfs' exited with code $lastExitCode" }
|
||||||
|
|
||||||
"HINT: Access Octoprint's web login at: http://<HOSTNAME>:5000"
|
"HINT: Access Octoprint's web login at: http://<HOSTNAME>:5000"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
Loading…
Reference in New Issue
Block a user