removed upgrade script 21/144921/1 accepted/tizen/4.0/unified/20170828.223905 accepted/tizen/unified/20170821.051237 submit/tizen/20170818.114316 submit/tizen_4.0/20170828.100002
authorIckhee Woo <ickhee.woo@samsung.com>
Fri, 18 Aug 2017 09:56:04 +0000 (18:56 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Fri, 18 Aug 2017 09:56:04 +0000 (18:56 +0900)
Change-Id: Ifc47ee3e8f61177f096f4dd31420d99e2d9c0acd
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
packaging/push.spec
scripts/500.sppc.sh [deleted file]

index 1f92596..8d96a44 100644 (file)
@@ -55,9 +55,6 @@ Requires:   %{name}-bin = %{version}-%{release}
 %description tool
 Push service tool
 
-%define _upgrade_script_path /usr/share/upgrade/scripts/
-%define _upgrade_script 500.sppc.sh
-
 
 %prep
 %setup -q
@@ -83,8 +80,6 @@ mkdir -p %{buildroot}%{_libdir}/pkgconfig
 cp -a push.pc %{buildroot}%{_libdir}/pkgconfig/
 mkdir -p %{buildroot}%{_bindir}
 
-mkdir -p %{buildroot}%{_upgrade_script_path}
-cp -f scripts/%{_upgrade_script} %{buildroot}%{_upgrade_script_path}
 
 mkdir -p %{buildroot}/usr/share/push
 
@@ -191,8 +186,6 @@ chsmack -a "*" %{TZ_SYS_GLOBALUSER_DB}/.push.db-journal
 %license LICENSE
 
 %{_unitdir}/pushd.service
-
-%attr(755,root,root) %{_upgrade_script_path}%{_upgrade_script}
 %{_unitdir}/multi-user.target.wants/pushd.service
 
 %files tool
diff --git a/scripts/500.sppc.sh b/scripts/500.sppc.sh
deleted file mode 100755 (executable)
index 2c871b4..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-##########################
-# sppc patch for upgrade #
-##########################
-
-# 2.4
-SPPC_SOCKET_DIR_24=/tmp
-SPPC_USERD_DIR_24=/usr/lib/systemd/user
-
-# 3.0
-SPPC_DB_DIR=/opt/usr/dbspace
-SPPC_CERT_DIR=/usr/share/push
-
-#Socket
-rm -rf $SPPC_SOCKET_DIR_24/push_unread
-rm -rf $SPPC_SOCKET_DIR_24/push_cli
-
-#Service
-rm -rf $SPPC_USERD_DIR_24/tizen-middleware.target.wants/pushd.service
-rm -rf $SPPC_USERD_DIR_24/pushd.service
-
-#Certification
-chown service_fw:service_fw $SPPC_CERT_DIR/*
-
-chmod 600 $SPPC_CERT_DIR/*
-
-#DB
-chown service_fw:service_fw $SPPC_DB_DIR/.push.db
-chown service_fw:service_fw $SPPC_DB_DIR/.push.db-journal
-
-chmod 644 $SPPC_DB_DIR/.push.db
-chmod 644 $SPPC_DB_DIR/.push.db-journal
-
-chsmack -a "*" $SPPC_DB_DIR/.push.db
-chsmack -a "*" $SPPC_DB_DIR/.push.db-journal
-