From 7f40e42776e30e2d2e6e2baaa49b0bdc67f147f5 Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Fri, 22 Feb 2019 19:52:06 +0100 Subject: [PATCH] Only migrate during update --- fedora/SPECS/polemarch.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedora/SPECS/polemarch.spec b/fedora/SPECS/polemarch.spec index 9fd2b04..d4e3b03 100644 --- a/fedora/SPECS/polemarch.spec +++ b/fedora/SPECS/polemarch.spec @@ -75,7 +75,7 @@ exit 0 %post %systemd_post %{name}.service # only migrate, if it is an update, at first installation, no database is available -if [ $2 -eq 1 ]; then +if [ $1 -eq 2 ]; then su - %{user} -c "/opt/%{name}/bin/%{shortname}ctl migrate" fi