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