mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-15 02:19:39 +01:00
Update install-evcc.ps1
This commit is contained in:
parent
91e99a66b5
commit
5f8bdab7fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user