summaryrefslogtreecommitdiff
path: root/upgrade/update-init.sh
blob: 5c414ad1689f1b4ac0b7ae65d321f532aff8c787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# RW update initialize script
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
OWNER_HOME=/opt/usr/home/owner

# 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