summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--500.email-service.sh49
-rwxr-xr-xpackaging/email-service.spec13
2 files changed, 0 insertions, 62 deletions
diff --git a/500.email-service.sh b/500.email-service.sh
deleted file mode 100644
index f05902c..0000000
--- a/500.email-service.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-#-------------------------------------------------#
-# email-service patch for upgrade (2.4 -> 3.0) #
-#-------------------------------------------------#
-
-# Macro
-DB_DIR_24=/opt/usr/dbspace
-DB_DIR_30=/opt/usr/home/owner/.applications/dbspace
-
-DB_FILE_24=$DB_DIR_24/.email-service.db
-DB_FILE_30=$DB_DIR_30/.email-service.db
-
-DATA_DIR_24=/opt/usr/data
-DATA_DIR_30=/opt/usr/home/owner/data
-
-EMSVC_DATA_24=$DATA_DIR_24/email
-EMSVC_DATA_30=$DATA_DIR_30/email
-
-UPGRADE_DATA_DIR=/usr/share/upgrade/data
-UPGRADE_DATA_FILE=$UPGRADE_DATA_DIR/email-service.sql
-
-EM_COMMON_DATA_30=/opt/data/email
-EM_RES_DATA_30=$EM_COMMON_DATA_30/res
-
-# Make Directory
-mkdir -p $DATA_DIR_30
-mkdir -p $EM_RES_DATA_30
-
-# Move
-mv $DB_FILE_24 $DB_FILE_30
-mv $EMSVC_DATA_24 $EMSVC_DATA_30
-mv $DB_FILE_24-journal $DB_FILE_30-journal
-cp $UPGRADE_DATA_FILE $EM_RES_DATA_30
-
-chown owner:users $DB_FILE_30
-chown owner:users $DATA_DIR_30
-chown -R owner:users $EMSVC_DATA_30
-
-chsmack -a User::Home $DB_FILE_30
-chsmack -a User::Home $DB_FILE_30-journal
-chsmack -a User::Home -t $EMSVC_DATA_30
-
-find $EMSVC_DATA_30/.email_data -exec chsmack -a 'User::Home' {} \;
-find $EMSVC_DATA_30/.email_data -type d -exec chsmack -t {} \;
-
-# Remove
-
diff --git a/packaging/email-service.spec b/packaging/email-service.spec
index b40bcaf..1e2039b 100755
--- a/packaging/email-service.spec
+++ b/packaging/email-service.spec
@@ -61,10 +61,6 @@ BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(cryptsvc)
BuildRequires: pkgconfig(capi-system-info)
-# OS upgrade
-%define upgrade_script_path /usr/share/upgrade/scripts
-%define upgrade_data_path /usr/share/upgrade/data
-
%description
E-mail Framework Middleware Library/Binary package
@@ -102,11 +98,6 @@ make %{?_smp_mflags}
find -name '*.pc' -exec sed -i -e 's/\$version/%{version}/g' {} \;
%install
-# OS upgrade
-mkdir -p %{buildroot}%{upgrade_script_path}
-mkdir -p %{buildroot}%{upgrade_data_path}
-cp -f 500.%{name}.sh %{buildroot}%{upgrade_script_path}
-cp -f res/%{name}.sql %{buildroot}%{upgrade_data_path}
%make_install
@@ -161,10 +152,6 @@ systemctl daemon-reload
%attr(0775,root,root) /etc/rc.d/init.d/email-service
%{_bindir}/email-service_init_db.sh
-# OS upgrade
-%{upgrade_script_path}/500.%{name}.sh
-%{upgrade_data_path}/%{name}.sql
-
%files devel
%{_includedir}/email-service/*.h
%{_libdir}/lib*.so