diff options
| author | Luke Hoersten <[email protected]> | 2026-04-25 20:04:39 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-04-25 20:04:39 -0500 |
| commit | ad2215ee82a87f11c23a7b50c7cc09de9bb7c802 (patch) | |
| tree | 8fb3a2851fee0fdc5deb029640329a0d3b4901f6 /pleroma/otp/tasks | |
| parent | 6a8cb5f10557733f1521035d57a191b12832d634 (diff) | |
Diffstat (limited to 'pleroma/otp/tasks')
| -rw-r--r-- | pleroma/otp/tasks/instance.yaml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pleroma/otp/tasks/instance.yaml b/pleroma/otp/tasks/instance.yaml index 3a48991..b69477d 100644 --- a/pleroma/otp/tasks/instance.yaml +++ b/pleroma/otp/tasks/instance.yaml @@ -66,6 +66,11 @@ become: yes systemd: name="pleroma@{{pleroma_instance}}.service" enabled="yes" state="started" +- name: check if pleroma binary is present + stat: + path: "/opt/pleroma/bin/pleroma_ctl" + register: pleroma_binary + - name: migrate db become: yes command: "/opt/pleroma/bin/pleroma_ctl migrate" @@ -73,4 +78,4 @@ chdir: "/opt/pleroma/" environment: PLEROMA_CONFIG_PATH: "/etc/pleroma/{{pleroma_instance}}.config.exs" - changed_when: false + when: pleroma_binary.stat.exists and not installed_version.stat.exists |
