diff options
author | Sunmin Lee <sunm.lee@samsung.com> | 2016-08-25 13:41:02 +0900 |
---|---|---|
committer | Sunmin Lee <sunm.lee@samsung.com> | 2016-08-28 22:33:29 -0700 |
commit | 9c075e855a52be97209ec9088ea34f13166bf744 (patch) | |
tree | b3c27cb87f104179f5085fb2ddb29093dacbdb79 | |
parent | 7d55bce57285b8a88d27a0a0b36ba4524fa0c44f (diff) | |
download | system-plugin-9c075e855a52be97209ec9088ea34f13166bf744.tar.gz system-plugin-9c075e855a52be97209ec9088ea34f13166bf744.tar.bz2 system-plugin-9c075e855a52be97209ec9088ea34f13166bf744.zip |
Upgrade: Create home directory through gum-utils '-u'submit/tizen/20160829.060602accepted/tizen/wearable/20160829.232744accepted/tizen/tv/20160829.232727accepted/tizen/mobile/20160829.232710accepted/tizen/ivi/20160829.232803accepted/tizen/common/20160829.140227
For Tizen 3.0, home directory for default user (owner)
is necessary. Rather than remove & recreate the user,
the '-u' option will just make a home directory for
specific user if it did not exist.
Change-Id: Ia1fd54c5a9b2ec15dbbfacd8e2a9b4a7191be22f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
-rwxr-xr-x | upgrade/update-init.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/upgrade/update-init.sh b/upgrade/update-init.sh index a627987..9618bf0 100755 --- a/upgrade/update-init.sh +++ b/upgrade/update-init.sh @@ -19,11 +19,7 @@ fi # Create home directory test ! -e /opt/usr/home && mkdir -p /opt/usr/home -if [ ! -d ${OWNER_HOME} ] -then - gum-utils --offline --delete-user --uid=5001 - gum-utils --offline --add-user --username=owner --usertype=admin --usecret=tizen -fi +gum-utils --offline -u --uid 5001 # Copy 3.0 rpm db rm -rf /var/lib/rpm/* |