mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +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))
|
print("CraftBeerPi Autostart is {}OFF{}".format(Fore.RED,Style.RESET_ALL))
|
||||||
elif(name == "on"):
|
elif(name == "on"):
|
||||||
user=os.getlogin()
|
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:
|
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")
|
print("Add craftbeerpi.service to systemd")
|
||||||
try:
|
try:
|
||||||
if os.path.exists(os.path.join("/etc/systemd/system","craftbeerpi.service")) is False:
|
if os.path.exists(os.path.join("/etc/systemd/system","craftbeerpi.service")) is False:
|
||||||
|
|
Loading…
Reference in a new issue