Fix security-manager package installation/update 63/148363/7
authorDariusz Michaluk <d.michaluk@samsung.com>
Thu, 7 Sep 2017 14:18:18 +0000 (16:18 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Tue, 24 Oct 2017 10:20:27 +0000 (12:20 +0200)
Change-Id: I117f2694ab042a05d6d5f05e3c79ee4fcc0aca9f

packaging/security-manager.spec

index 7df47f1..f776736 100644 (file)
@@ -151,15 +151,19 @@ rm -rf %{buildroot}
 systemctl daemon-reload
 if [ $1 = 1 ]; then
     # installation
-    systemctl start security-manager.service
     %{_datadir}/security-manager/db/update.sh
+    systemctl start security-manager.socket
+    systemctl start security-manager.service
 fi
 
 if [ $1 = 2 ]; then
     # update
+    systemctl stop security-manager.socket
+    systemctl stop security-manager.service
     %{_bindir}/security-manager-migration
-    systemctl restart security-manager.service
     %{_datadir}/security-manager/db/update.sh
+    systemctl start security-manager.socket
+    systemctl start security-manager.service
 fi
 
 chsmack -a System %{TZ_SYS_DB}/.security-manager.db