upgrade_script: make .pwd.lock symlink for RO support 39/133939/1 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/common/20170616.065310 accepted/tizen/3.0/ivi/20170615.081135 accepted/tizen/3.0/mobile/20170615.081122 accepted/tizen/3.0/tv/20170615.081127 accepted/tizen/3.0/wearable/20170615.081131 submit/tizen_3.0/20170615.044726
authorYunmi Ha <yunmi.ha@samsung.com>
Wed, 14 Jun 2017 05:05:25 +0000 (14:05 +0900)
committerYunmi Ha <yunmi.ha@samsung.com>
Wed, 14 Jun 2017 05:05:25 +0000 (14:05 +0900)
Change-Id: I6d366d31dd8b2ce9c68d2939b83e83710a45294e
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
data/500.gumd_upgrade.sh

index 2526d99..41f30c4 100644 (file)
@@ -7,7 +7,15 @@
 # Macro
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
 USERDATA_DIR=/var/lib/gumd/user
+SYSCONFIG_PATH=/etc
+OLD_PWDLOCK_FILE=$SYSCONFIG_PATH/.pwd.lock
+NEW_PWDLOCK_FILE=/opt$SYSCONFIG_PATH/.pwd.lock
 
 # Create default user data
 mkdir -p $USERDATA_DIR
 touch $USERDATA_DIR/5001
+
+# Create .pwd.lock symlink file for RO support.
+touch $NEW_PWDLOCK_FILE
+rm -f $OLD_PWDLOCK_FILE
+ln -s $NEW_PWDLOCK_FILE $OLD_PWDLOCK_FILE