gumd_upgrade.sh script will be excuted when flatform upgrade to 3.0 from 2.4.
This script only create default user's info file.
Change-Id: Ia08de528e3c90e4abe5a285d604725882852321b
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
EXTRA_DIST = \
gumd.conf.in \
gumd.service \
+ gumd_upgrade.sh \
tizen
gumdconfdir = ${sysconfdir}/gumd
GLIB_MKENUMS = @GLIB_MKENUMS@
GREP = @GREP@
GTKDOC_CHECK = @GTKDOC_CHECK@
-GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
+TZ_PLATFORM_CONFIG_CFLAGS = @TZ_PLATFORM_CONFIG_CFLAGS@
+TZ_PLATFORM_CONFIG_LIBS = @TZ_PLATFORM_CONFIG_LIBS@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
EXTRA_DIST = \
gumd.conf.in \
gumd.service \
+ gumd_upgrade.sh \
tizen
gumdconfdir = ${sysconfdir}/gumd
--- /dev/null
+#!/bin/sh
+
+#-----------------------------------------------#
+# gumd patch for upgrade (2.4 -> 3.0) #
+#-----------------------------------------------#
+
+# Macro
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+USERDATA_DIR=/var/lib/gumd/user
+
+# Create default user data
+mkdir -p $USERDATA_DIR
+touch $USERDATA_DIR/5001
rm -f %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -m 755 -d %{buildroot}%{_sysconfdir}/%{name}
install -m 644 data/tizen/etc/%{name}/%{name}-tizen-common.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
+install -m 755 -d %{buildroot}%{_datadir}/upgrade/scripts
+install -m 644 data/gumd_upgrade.sh %{buildroot}%{_datadir}/upgrade/scripts
%if "%{TIZEN_PRODUCT_TV}" != "1"
install -m 755 -d %{buildroot}%{_unitdir}
install -m 644 data/gumd.service %{buildroot}%{_unitdir}
%doc AUTHORS COPYING.LIB NEWS README
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
+%dir %{_datadir}/upgrade/scripts
+%{_datadir}/upgrade/scripts/gumd_upgrade.sh
%if %{dbus_type} == "system"
%dir %{_datadir}/dbus-1/system-services
%{_datadir}/dbus-1/system-services/*UserManagement*.service