1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/homeassistant_ynh.git synced 2024-09-03 19:26:16 +02:00

Remove verbose mode after first start

This commit is contained in:
ewilly 2020-08-14 14:26:27 +02:00
parent bd41de5df3
commit e508881b48
2 changed files with 8 additions and 0 deletions

View file

@ -82,6 +82,10 @@ yunohost service add "$app@$app" --log "$data_path/home-assistant.log" --descrip
# start systemd service
ynh_script_progression --message="Starting the Home Assistant server..."
ynh_systemd_action --service_name="$app@$app" --action=start --line_match="Home Assistant initialized" --log_path="systemd" --timeout=1000
# remove --verbose from service
ynh_replace_string " --verbose" "" "/etc/systemd/system/$app@$app.service"
systemctl daemon-reload
ynh_systemd_action --service_name="$app@$app" --action=restart
# create a dedicated nginx config
ynh_script_progression --message="Configuring nginx web server..."

View file

@ -68,6 +68,10 @@ ynh_add_systemd_config --service="$app@$app"
# start systemd service
ynh_script_progression --message="Starting the Home Assistant server..."
ynh_systemd_action --service_name="$app@$app" --action=start --line_match="Home Assistant initialized" --log_path="systemd" --timeout=1000
# remove --verbose from service
ynh_replace_string " --verbose" "" "/etc/systemd/system/$app@$app.service"
systemctl daemon-reload
ynh_systemd_action --service_name="$app@$app" --action=restart
# create a dedicated nginx config
ynh_script_progression --message="Configuring nginx web server..."