Only migrate during update

This commit is contained in:
2019-02-22 19:52:06 +01:00
parent ab42be0527
commit 7f40e42776

View File

@@ -75,7 +75,7 @@ exit 0
%post %post
%systemd_post %{name}.service %systemd_post %{name}.service
# only migrate, if it is an update, at first installation, no database is available # 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" su - %{user} -c "/opt/%{name}/bin/%{shortname}ctl migrate"
fi fi