Only migrate during update
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user