mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-22 13:34:55 +01:00
fix
This commit is contained in:
parent
1b666be9bc
commit
6d8faa7f75
1 changed files with 2 additions and 2 deletions
|
@ -151,9 +151,9 @@ class CraftBeerPiCli():
|
|||
print("CraftBeerPi Autostart is {}OFF{}".format(Fore.RED,Style.RESET_ALL))
|
||||
elif(name == "on"):
|
||||
user=os.getlogin()
|
||||
path="/usr/local/bin/cbpi start"
|
||||
path="/usr/local/bin/cbpi"
|
||||
if os.path.exists("/home/"+user+"/.local/bin/cbpi") is True:
|
||||
path="/home/"+user+"/.local/bin/cbpi start"
|
||||
path="/home/"+user+"/.local/bin/cbpi"
|
||||
print("Add craftbeerpi.service to systemd")
|
||||
try:
|
||||
if os.path.exists(os.path.join("/etc/systemd/system","craftbeerpi.service")) is False:
|
||||
|
|
Loading…
Reference in a new issue