mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
add a way to restart on os x
This commit is contained in:
parent
3ed102cd88
commit
d25a42426a
@ -103,6 +103,10 @@ def get_arguments():
|
||||
'--uninstall-osx',
|
||||
action='store_true',
|
||||
help='Uninstalls from OS X.')
|
||||
parser.add_argument(
|
||||
'--restart-osx',
|
||||
action='store_true',
|
||||
help='Restarts on OS X.')
|
||||
if os.name != "nt":
|
||||
parser.add_argument(
|
||||
'--daemon',
|
||||
@ -199,7 +203,6 @@ def uninstall_osx():
|
||||
|
||||
print("Home Assistant has been uninstalled.")
|
||||
|
||||
|
||||
def main():
|
||||
""" Starts Home Assistant. """
|
||||
validate_python()
|
||||
@ -216,6 +219,10 @@ def main():
|
||||
if args.uninstall_osx:
|
||||
uninstall_osx()
|
||||
return
|
||||
if args.restart_osx:
|
||||
uninstall_osx()
|
||||
install_osx()
|
||||
return
|
||||
|
||||
# daemon functions
|
||||
if args.pid_file:
|
||||
|
Loading…
x
Reference in New Issue
Block a user