Do not create owner user 08/189108/1 accepted/tizen/5.0/unified/20181102.021056 accepted/tizen/unified/20180917.195157 submit/tizen/20180914.113308 submit/tizen_5.0/20181101.000004
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 13 Sep 2018 08:20:33 +0000 (10:20 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 13 Sep 2018 08:20:33 +0000 (10:20 +0200)
Default system user ('owner') is also created in kickstart, where
it's adjusted for the platform requirements.

This commit removes the duplicate.

Change-Id: I3e2268ff961ad14e2194e857751846cd25bfe2a7

packaging/tlm.spec

index 7db8da7a355ead4de2e1e7e132f93d6236c2edfb..04f9aaf803af5bf1611139af652457234cc4f4d6 100755 (executable)
@@ -26,7 +26,6 @@ Requires(post): systemd
 Requires(postun): /sbin/ldconfig
 Requires(postun): systemd
 Requires(post): tizen-platform-config
-Requires: gum-utils
 Requires: libsystemd
 Requires: pam-modules-extra
 BuildRequires: pkgconfig(glib-2.0) >= 2.30
@@ -126,12 +125,6 @@ chmod 700 %{buildroot}%{_bindir}/%{name}-launcher
 %post
 /sbin/ldconfig
 
-%posttrans
-if [ -z `getent passwd |  grep ^%{TZ_SYS_DEFAULT_USER}:` ]; then
-    gum-utils --offline --add-user --username="%{TZ_SYS_DEFAULT_USER}" --usertype=admin --usecret=tizen
-fi
-
-
 %postun -p /sbin/ldconfig