Remove not supported update script 07/148007/1 accepted/tizen/unified/20170907.060359 submit/tizen/20170906.091754
authorSunmin Lee <sunm.lee@samsung.com>
Wed, 6 Sep 2017 07:16:14 +0000 (16:16 +0900)
committertaesub kim <taesub.kim@samsung.com>
Wed, 6 Sep 2017 08:55:14 +0000 (17:55 +0900)
RW update script for Tizen 2.4 (to 3.0) is not necessary in Tizen 4.0.
(Tizen 4.0 does not support upgrade from Tizen 2.4)
Remove this file in terms of clearing the redundancy.

Change-Id: I2ae685c540853a0d83565f9d7c5445aebc6d4ff8

500.download-provider_upgrade.sh [deleted file]
packaging/download-provider.spec

diff --git a/500.download-provider_upgrade.sh b/500.download-provider_upgrade.sh
deleted file mode 100755 (executable)
index 4ce0d3d..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-#-----------------------------------------------#
-# download-provider patch for upgrade (2.4 -> 3.0) #
-#-------------------------------------------------#
-
-# Macro
-. /etc/tizen-platform.conf
-export `tzplatform-get --user $TZ_SYS_DEFAULT_USER TZ_USER_DOWNLOADS`
-
-DOWNLOAD_DIR_24=/opt/usr/media/Downloads
-DOWNLOAD_DIR_30=$TZ_USER_DOWNLOADS
-SOCK_DIR_24=/opt/data/download-provider
-DATA_INSTALL_DIR=/opt/usr/data/download-provider
-NOTIFY_DIR=$DATA_INSTALL_DIR/notify
-DATABASE_DIR=$DATA_INSTALL_DIR/database
-DATABASE_CLIENT_DIR=$DATABASE_DIR/clients
-
-# Move
-mv $DOWNLOAD_DIR_24/.temp_download $DOWNLOAD_DIR_30
-mv `find $DOWNLOAD_DIR_24/* -type f` $DOWNLOAD_DIR_30
-
-# Remove
-rm -r $SOCK_DIR_24
-
-# Set permission
-chown -R web_fw:web_fw $DATA_INSTALL_DIR
-
-chsmack -a System::Shared $NOTIFY_DIR
-chsmack -a System::Shared $NOTIFY_DIR/*
-chsmack -t $NOTIFY_DIR
-
-chmod 700 $DATABASE_DIR
-chsmack -a System $DATABASE_DIR
-chsmack -a System $DATABASE_DIR/.download-provider*
-
-chmod 700 $DATABASE_CLIENT_DIR
-chsmack -a System $DATABASE_CLIENT_DIR
-chsmack -a System $DATABASE_CLIENT_DIR/.org.tizen.download-manager*
-
-chmod g+s $DOWNLOAD_DIR_30/.temp_download
-chown owner:priv_mediastorage $DOWNLOAD_DIR_30/.temp_download
-chsmack -a User::App::Shared $DOWNLOAD_DIR_30/.temp_download
-chown owner:users $DOWNLOAD_DIR_30/*
-chsmack -a User::App::Shared $DOWNLOAD_DIR_30/*
\ No newline at end of file
index a757037..6595f06 100755 (executable)
@@ -67,7 +67,6 @@ Description: Download the contents in background (development files)
 %define _ipc_socket /tmp/.download-provider.sock
 %define _logdump_script_dir %{TZ_SYS_ETC}/dump.d/module.d
 %define _http_lib libcurl
-%define upgrade_script_path /usr/share/upgrade/scripts
 
 %define download_booster OFF
 %define support_oma_drm OFF
@@ -182,10 +181,6 @@ mkdir -p %{buildroot}/lib/systemd/system/sockets.target.wants
 ln -s ../download-provider.service %{buildroot}/lib/systemd/system/graphical.target.wants/
 ln -s ../download-provider.socket %{buildroot}/lib/systemd/system/sockets.target.wants/
 
-#OS Upgrade
-mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f 500.download-provider_upgrade.sh %{buildroot}%{upgrade_script_path}
-
 %post
 #make notify dir in post section for smack
 mkdir %{TZ_SYS_GLOBALUSER_DATA}/download-provider
@@ -215,7 +210,6 @@ chown -R web_fw:web_fw %{_data_install_path}
 %attr(0544,root,root) %{_logdump_script_dir}/dump-%{name}.sh
 ## container_enable
 %attr(0644,root,root) /etc/vasum/vsmzone.resource/download-provider.res
-%{upgrade_script_path}/500.download-provider_upgrade.sh
 %if "{tizen_profile_name}" == "tv"
 /etc/notstrip/download-provider.notstrip
 %endif