Skip to content

Commit

Permalink
Fixes failure to start the host agent service in Bullseye. (#1979)
Browse files Browse the repository at this point in the history
* fix: install Python deps in a virtual env for older versions as well
* fix: add python3-venv as dependency
  • Loading branch information
nicomiguelino authored Jul 17, 2024
1 parent dfae0d3 commit 65ea8b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions ansible/roles/screenly/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,11 @@
state: absent
dest: "/home/{{ lookup('env', 'USER') }}/.screenly/screenly.conf"

- name: Install pip dependencies
ansible.builtin.pip:
requirements: "/home/{{ lookup('env', 'USER') }}/screenly/requirements/requirements.host.txt"
extra_args: "--no-cache-dir --upgrade"
when: ansible_distribution_major_version|int <= 11

- name: Install pip dependencies
ansible.builtin.pip:
executable: "/home/{{ lookup('env', 'USER') }}/installer_venv/bin/pip"
requirements: "/home/{{ lookup('env', 'USER') }}/screenly/requirements/requirements.host.txt"
extra_args: "--no-cache-dir --upgrade"
when: ansible_distribution_major_version|int >= 12

- name: Remove screenly_utils.sh
ansible.builtin.file:
Expand Down
2 changes: 1 addition & 1 deletion bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ APT_INSTALL_ARGS=(
if [ "$RASPBIAN_VERSION" = "12" ]; then
APT_INSTALL_ARGS+=("python3-full")
else
APT_INSTALL_ARGS+=("python3" "python3-dev" "python3-pip")
APT_INSTALL_ARGS+=("python3" "python3-dev" "python3-pip" "python3-venv")
fi

sudo sed -i 's/apt.screenlyapp.com/archive.raspbian.org/g' /etc/apt/sources.list
Expand Down

0 comments on commit 65ea8b5

Please sign in to comment.