Update install-evcc.ps1

This commit is contained in:
Markus Fleschutz 2023-04-20 12:54:56 +02:00
parent 91e99a66b5
commit 5f8bdab7fd

View File

@ -14,6 +14,7 @@
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()
if ($IsLinux) {
"⏳ (1/6) Installing necessary packets..."
& sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
@ -31,7 +32,9 @@ try {
"⏳ (6/6) Starting evcc Web server on :7070 as system service..."
& sudo systemctl start evcc
} else {
throw "Sorry, only Linux installation currently supported"
}
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ evcc installed successfully in $Elapsed sec"
exit 0 # success