diff options
author | Inkyun Kil <inkyun.kil@samsung.com> | 2020-10-26 08:23:05 +0900 |
---|---|---|
committer | Inkyun Kil <inkyun.kil@samsung.com> | 2020-10-26 15:39:28 +0900 |
commit | 5c53a4aaf412a3a1229a274bd067c2b95b3236be (patch) | |
tree | 24f38e9c4a5fc890036952e01cda5a18d7b93eb5 | |
parent | 2c9f7e5472f2b06aac13d04ceb60611b39c5dabb (diff) | |
download | buxton2-5c53a4aaf412a3a1229a274bd067c2b95b3236be.tar.gz buxton2-5c53a4aaf412a3a1229a274bd067c2b95b3236be.tar.bz2 buxton2-5c53a4aaf412a3a1229a274bd067c2b95b3236be.zip |
Delay 'security-disable' in upgrade script
- If buxton daemon is not alive, it fails.
So should delay 'security-disable'.
Change-Id: If2363c554feb4a51ee0894ea50e8efb774ab6eee
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
-rwxr-xr-x | scripts/290.buxton2_upgrade.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/290.buxton2_upgrade.sh b/scripts/290.buxton2_upgrade.sh index e947c6d..2a897cf 100755 --- a/scripts/290.buxton2_upgrade.sh +++ b/scripts/290.buxton2_upgrade.sh @@ -13,5 +13,14 @@ buxton2ctl remove-garbage-data system systemctl start buxton2 +count=0 +while [ "$(systemctl is-active buxton2)" != "active" ] && [ ${count} -le 2 ]; +do + echo "wait" + sleep 1 + count=$((count+1)) +done + + buxton2ctl security-disable |