1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/homeassistant_ynh.git synced 2024-09-03 19:26:16 +02:00
This commit is contained in:
ewilly 2022-01-06 20:44:43 +01:00
parent cfb2d2bae0
commit a05f56079e

View file

@ -52,7 +52,7 @@ ynh_script_progression --message="Restoring the data..."
ynh_restore_file --origin_path="$data_path"
# restore log
ynh_script_progression --message="Restoring the app..."
ynh_script_progression --message="Restoring the log file..."
ynh_restore_file --origin_path="$(dirname "$log_file")"
# add required packages
@ -68,6 +68,7 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./
# restore the systemd service
ynh_script_progression --message="Restoring the dedicated service..."
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service --quiet
# add service in admin panel
yunohost service add "$app" --log "$log_file" --description "Home Assistant server" --needs_exposed_ports $port