Skip to content

Commit

Permalink
fix: version check fails, if onboot was not already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
mabunixda committed Dec 21, 2021
1 parent 415c8ca commit c4ca4a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/onboot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
raw: "{{ unifi_os_cmd }} dpkg-query --showformat='${Version}' --show udm-boot"

- name: onboot - installation
when: onboot_version.stdout != udm_onboot_version
when: onboot_version is not defined or ( onboot_version.stdout is defined and onboot_version.stdout != udm_onboot_version )
block:
- name: onboot - download package
raw: curl -L "{{ unifi_onboot_download_uri }}" -o "{{ unifi_mount_path }}/unifi-os/udm-boot-{{ udm_onboot_version }}.deb"
Expand Down

0 comments on commit c4ca4a6

Please sign in to comment.