fix(pncc): provision resident runtime ownership
This commit is contained in:
parent
03f31ae412
commit
c5668d33bc
2 changed files with 2 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ verify_identity() {
|
|||
prepare_runtime() {
|
||||
mount -o remount,rw /
|
||||
mkdir -p "$STATE_ROOT" "$RECEIPT_ROOT" /run/sshd /run/systemd/resolve
|
||||
install -d -o guanghu -g guanghu -m 0700 "$PNCC_STATE_ROOT"
|
||||
chmod 0700 "$STATE_ROOT" "$RECEIPT_ROOT"
|
||||
chmod 1777 /tmp
|
||||
mountpoint -q /proc || mount -t proc proc /proc
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ grep -Fq 'start_guanghu repository-bridge' "$subject"
|
|||
grep -Fq 'start_guanghu app-hub' "$subject"
|
||||
grep -Fq 'start_guanghu navigation-bridge' "$subject"
|
||||
grep -Fq 'start_guanghu pncc-runtime' "$subject"
|
||||
grep -Fq 'install -d -o guanghu -g guanghu -m 0700 "$PNCC_STATE_ROOT"' "$subject"
|
||||
grep -Fq '[[ ",$expected," == *",$code,"* ]]' "$subject"
|
||||
grep -Fq 'wait_http code-projection http://127.0.0.1:8088/code/ 200,303' "$subject"
|
||||
grep -Fq 'wait_http navigation-bridge http://127.0.0.1:3922/v1/anchor 200' "$subject"
|
||||
|
|
|
|||
Loading…
Reference in a new issue