From bd41de5df3c71699464bb7bf77143c603d90652c Mon Sep 17 00:00:00 2001 From: ewilly Date: Fri, 14 Aug 2020 13:25:58 +0200 Subject: [PATCH] Update --- conf/systemd.service | 2 +- scripts/install | 4 ++-- scripts/upgrade | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 283225c..8f9fe92 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,7 +6,7 @@ After=network-online.target Type=simple User=homeassistant WorkingDirectory=/home/homeassistant/.homeassistant -ExecStart=/opt/yunohost/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant" --debug +ExecStart=/opt/yunohost/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant" --verbose [Install] WantedBy=multi-user.target diff --git a/scripts/install b/scripts/install index badb5f0..2ec0832 100644 --- a/scripts/install +++ b/scripts/install @@ -60,9 +60,9 @@ exec_as $app -H -s /bin/bash -c " \ && echo 'activate the virtual environment' \ && source "$final_path/bin/activate" \ && echo 'install a required python package' \ - && pip install --upgrade wheel \ + && python3 -m pip install --upgrade wheel \ && echo 'install Home Assistant' \ - && pip install --upgrade $app==$VERSION \ + && pip3 install --upgrade $app==$VERSION \ " # set default configuration files diff --git a/scripts/upgrade b/scripts/upgrade index f525f5f..0c06c4b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,15 +50,15 @@ ynh_systemd_action --service_name="$app@$app" --action=stop # installation in a virtual environment ynh_script_progression --message="Installing Home Assistant in a virtual environment..." -exec_as "$app" -H -s /bin/bash -c " \ +exec_as $app -H -s /bin/bash -c " \ echo 'create the virtual environment' \ - && python3 -m venv $final_path \ + && python3 -m venv "$final_path" \ && echo 'activate the virtual environment' \ - && source $final_path/bin/activate \ + && source "$final_path/bin/activate" \ && echo 'install a required python package' \ - && pip install --upgrade wheel \ + && python3 -m pip install --upgrade wheel \ && echo 'install Home Assistant' \ - && pip install --upgrade $app==$VERSION \ + && pip3 install --upgrade $app==$VERSION \ " # setup up systemd service