src.nth.io/

summaryrefslogtreecommitdiff
path: root/pleroma/otp/tasks
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-04-25 20:04:39 -0500
committerLuke Hoersten <[email protected]>2026-04-25 20:04:39 -0500
commitad2215ee82a87f11c23a7b50c7cc09de9bb7c802 (patch)
tree8fb3a2851fee0fdc5deb029640329a0d3b4901f6 /pleroma/otp/tasks
parent6a8cb5f10557733f1521035d57a191b12832d634 (diff)
Only run pleroma migrate on version change or first installHEADmain
Diffstat (limited to 'pleroma/otp/tasks')
-rw-r--r--pleroma/otp/tasks/instance.yaml7
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