summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunmin Lee <sunm.lee@samsung.com>2016-08-25 13:41:02 +0900
committerSunmin Lee <sunm.lee@samsung.com>2016-08-28 22:33:29 -0700
commit9c075e855a52be97209ec9088ea34f13166bf744 (patch)
treeb3c27cb87f104179f5085fb2ddb29093dacbdb79
parent7d55bce57285b8a88d27a0a0b36ba4524fa0c44f (diff)
downloadsystem-plugin-9c075e855a52be97209ec9088ea34f13166bf744.tar.gz
system-plugin-9c075e855a52be97209ec9088ea34f13166bf744.tar.bz2
system-plugin-9c075e855a52be97209ec9088ea34f13166bf744.zip
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-xupgrade/update-init.sh6
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/*